pub struct OwnershipPattern {
pub pattern_type: OwnershipPatternType,
pub location: Span,
pub description: String,
pub suggestion: Option<String>,
pub severity: Severity,
}
Expand description
Represents an ownership pattern found in the code
Fields§
§pattern_type: OwnershipPatternType
§location: Span
§description: String
§suggestion: Option<String>
§severity: Severity
Trait Implementations§
Source§impl Clone for OwnershipPattern
impl Clone for OwnershipPattern
Source§fn clone(&self) -> OwnershipPattern
fn clone(&self) -> OwnershipPattern
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for OwnershipPattern
impl RefUnwindSafe for OwnershipPattern
impl Send for OwnershipPattern
impl Sync for OwnershipPattern
impl Unpin for OwnershipPattern
impl UnwindSafe for OwnershipPattern
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