#[non_exhaustive]pub enum CloneGroupKind {
Exact,
Near {
similarity: f64,
},
}Expand description
Whether a clone group is exact or a near-miss match.
This is derived from the serialized clone-group fields and does not add a separate discriminator to the output contract.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
An exact or normalization-equivalent clone group.
Near
A near-miss group and its lowest all-pairs similarity.
Trait Implementations§
Source§impl Clone for CloneGroupKind
impl Clone for CloneGroupKind
impl Copy for CloneGroupKind
Source§impl Debug for CloneGroupKind
impl Debug for CloneGroupKind
Source§impl PartialEq for CloneGroupKind
impl PartialEq for CloneGroupKind
impl StructuralPartialEq for CloneGroupKind
Auto Trait Implementations§
impl Freeze for CloneGroupKind
impl RefUnwindSafe for CloneGroupKind
impl Send for CloneGroupKind
impl Sync for CloneGroupKind
impl Unpin for CloneGroupKind
impl UnsafeUnpin for CloneGroupKind
impl UnwindSafe for CloneGroupKind
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