#[repr(i32)]pub enum DiffKind {
DiffNone = 0,
DiffReplace = 1,
DiffDelete = 2,
DiffInsert = 3,
DiffOpMismatch = 4,
DiffArgMismatch = 5,
}
Variants§
Implementations§
source§impl DiffKind
impl DiffKind
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
§impl<'de> Deserialize<'de> for DiffKind
impl<'de> Deserialize<'de> for DiffKind
§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
source§impl From<ObjDataDiffKind> for DiffKind
impl From<ObjDataDiffKind> for DiffKind
source§fn from(value: ObjDataDiffKind) -> Self
fn from(value: ObjDataDiffKind) -> Self
Converts to this type from the input type.
source§impl From<ObjInsDiffKind> for DiffKind
impl From<ObjInsDiffKind> for DiffKind
source§fn from(value: ObjInsDiffKind) -> Self
fn from(value: ObjInsDiffKind) -> Self
Converts to this type from the input type.
source§impl Ord for DiffKind
impl Ord for DiffKind
source§impl PartialOrd for DiffKind
impl PartialOrd for DiffKind
impl Copy for DiffKind
impl Eq for DiffKind
impl StructuralPartialEq for DiffKind
Auto Trait Implementations§
impl Freeze for DiffKind
impl RefUnwindSafe for DiffKind
impl Send for DiffKind
impl Sync for DiffKind
impl Unpin for DiffKind
impl UnwindSafe for DiffKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.