#[non_exhaustive]#[repr(C)]pub enum Characteristic {
Show 14 variants
Send = 0,
Sync = 1,
Copy = 2,
Eq = 3,
Unpin = 4,
Clone = 5,
Display = 6,
Debug = 7,
PartialEq = 8,
PartialOrd = 9,
Ord = 10,
Hash = 11,
Default = 12,
FromStr = 13,
}
Expand description
A characteristic a shape can have
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.
Send = 0
Implements Send
Sync = 1
Implements Sync
Copy = 2
Implements Copy
Eq = 3
Implements Eq
Unpin = 4
Implements Unpin
Clone = 5
Implements Clone
Display = 6
Implements Display
Debug = 7
Implements Debug
PartialEq = 8
Implements PartialEq
PartialOrd = 9
Implements PartialOrd
Ord = 10
Implements Ord
Hash = 11
Implements Hash
Default = 12
Implements Default
FromStr = 13
Implements FromStr
Implementations§
Source§impl Characteristic
impl Characteristic
Sourcepub fn all(self, shapes: &[&Shape<'_>]) -> bool
pub fn all(self, shapes: &[&Shape<'_>]) -> bool
Checks if all shapes have the given characteristic.
Sourcepub fn any(self, shapes: &[&Shape<'_>]) -> bool
pub fn any(self, shapes: &[&Shape<'_>]) -> bool
Checks if any shape has the given characteristic.
Sourcepub fn none(self, shapes: &[&Shape<'_>]) -> bool
pub fn none(self, shapes: &[&Shape<'_>]) -> bool
Checks if none of the shapes have the given characteristic.
Sourcepub fn all_default(shapes: &[&Shape<'_>]) -> bool
pub fn all_default(shapes: &[&Shape<'_>]) -> bool
Checks if all shapes have the Default
characteristic
Sourcepub fn all_partial_eq(shapes: &[&Shape<'_>]) -> bool
pub fn all_partial_eq(shapes: &[&Shape<'_>]) -> bool
Checks if all shapes have the PartialEq
characteristic
Sourcepub fn all_partial_ord(shapes: &[&Shape<'_>]) -> bool
pub fn all_partial_ord(shapes: &[&Shape<'_>]) -> bool
Checks if all shapes have the PartialOrd
characteristic
Trait Implementations§
Source§impl Clone for Characteristic
impl Clone for Characteristic
Source§fn clone(&self) -> Characteristic
fn clone(&self) -> Characteristic
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 moreSource§impl Debug for Characteristic
impl Debug for Characteristic
Source§impl Hash for Characteristic
impl Hash for Characteristic
Source§impl PartialEq for Characteristic
impl PartialEq for Characteristic
impl Copy for Characteristic
impl Eq for Characteristic
impl StructuralPartialEq for Characteristic
Auto Trait Implementations§
impl Freeze for Characteristic
impl RefUnwindSafe for Characteristic
impl Send for Characteristic
impl Sync for Characteristic
impl Unpin for Characteristic
impl UnwindSafe for Characteristic
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