pub struct UnsafeBlockInfo {
pub location: String,
pub allocation_count: usize,
pub total_memory: usize,
pub risk_level: RiskLevel,
pub functions_called: Vec<String>,
}
Expand description
Information about an unsafe block
Fields§
§location: String
Location of the unsafe block
allocation_count: usize
Number of allocations in this block
total_memory: usize
Total memory allocated in this block
risk_level: RiskLevel
Risk level of this block
functions_called: Vec<String>
Functions called within this block
Trait Implementations§
Source§impl Clone for UnsafeBlockInfo
impl Clone for UnsafeBlockInfo
Source§fn clone(&self) -> UnsafeBlockInfo
fn clone(&self) -> UnsafeBlockInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnsafeBlockInfo
impl Debug for UnsafeBlockInfo
Auto Trait Implementations§
impl Freeze for UnsafeBlockInfo
impl RefUnwindSafe for UnsafeBlockInfo
impl Send for UnsafeBlockInfo
impl Sync for UnsafeBlockInfo
impl Unpin for UnsafeBlockInfo
impl UnwindSafe for UnsafeBlockInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more