pub struct SafetyIssue {
pub issue_type: SafetyIssueType,
pub location: Span,
pub description: String,
pub rationale: Option<String>,
pub mitigation: Option<String>,
pub risk_level: RiskLevel,
}
Expand description
Safety issue found in the code
Fields§
§issue_type: SafetyIssueType
§location: Span
§description: String
§rationale: Option<String>
§mitigation: Option<String>
§risk_level: RiskLevel
Trait Implementations§
Source§impl Clone for SafetyIssue
impl Clone for SafetyIssue
Source§fn clone(&self) -> SafetyIssue
fn clone(&self) -> SafetyIssue
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 moreAuto Trait Implementations§
impl Freeze for SafetyIssue
impl RefUnwindSafe for SafetyIssue
impl Send for SafetyIssue
impl Sync for SafetyIssue
impl Unpin for SafetyIssue
impl UnwindSafe for SafetyIssue
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