pub struct UnsafeBlock {
pub line: usize,
pub confidence: u8,
pub pattern: UnsafePattern,
pub suggestion: String,
}Expand description
Represents a single unsafe block found in Rust code
Fields§
§line: usizeLine number where the unsafe block starts
confidence: u8Confidence score (0-100) that this block could be eliminated
pattern: UnsafePatternPattern detected (e.g., “raw_pointer_deref”, “transmute”, etc.)
suggestion: StringSuggestion for safer alternative
Trait Implementations§
Source§impl Clone for UnsafeBlock
impl Clone for UnsafeBlock
Source§fn clone(&self) -> UnsafeBlock
fn clone(&self) -> UnsafeBlock
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 UnsafeBlock
impl Debug for UnsafeBlock
Source§impl PartialEq for UnsafeBlock
impl PartialEq for UnsafeBlock
impl StructuralPartialEq for UnsafeBlock
Auto Trait Implementations§
impl Freeze for UnsafeBlock
impl RefUnwindSafe for UnsafeBlock
impl Send for UnsafeBlock
impl Sync for UnsafeBlock
impl Unpin for UnsafeBlock
impl UnsafeUnpin for UnsafeBlock
impl UnwindSafe for UnsafeBlock
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