pub enum RefOrigin {
Added,
Context,
}Expand description
Which side of the hunk a reference was extracted from. Added
lines are requirements the patch introduces; Context lines are
pre-existing facts about the target and never drive verdicts.
Added orders first so a kind-level dedup keeps the stronger
origin.
Variants§
Implementations§
Trait Implementations§
impl Copy for RefOrigin
Source§impl<'de> Deserialize<'de> for RefOrigin
impl<'de> Deserialize<'de> for RefOrigin
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RefOrigin
Source§impl Ord for RefOrigin
impl Ord for RefOrigin
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for RefOrigin
impl PartialOrd for RefOrigin
impl StructuralPartialEq for RefOrigin
Auto Trait Implementations§
impl Forget for RefOrigin
impl Freeze for RefOrigin
impl Move for RefOrigin
impl RefUnwindSafe for RefOrigin
impl Send for RefOrigin
impl Sync for RefOrigin
impl Unpin for RefOrigin
impl UnsafeUnpin for RefOrigin
impl UnwindSafe for RefOrigin
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