pub enum TypeClass {
BEq,
Hashable,
Repr,
ToString,
Ord,
}Expand description
Supported type classes.
Variants§
BEq
Boolean equality (BEq)
Hashable
Hashing (Hashable)
Repr
Representation (Repr)
ToString
String conversion (ToString)
Ord
Ordering comparison (Ord)
Implementations§
Source§impl TypeClass
impl TypeClass
Sourcepub fn from_ident(ident: &Ident) -> Option<Self>
pub fn from_ident(ident: &Ident) -> Option<Self>
Parse from identifier.
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Get the required method name.
Sourcepub fn ffi_prefix(&self) -> &'static str
pub fn ffi_prefix(&self) -> &'static str
Get the FFI function prefix.
Trait Implementations§
impl Copy for TypeClass
impl Eq for TypeClass
impl StructuralPartialEq for TypeClass
Auto Trait Implementations§
impl Freeze for TypeClass
impl RefUnwindSafe for TypeClass
impl Send for TypeClass
impl Sync for TypeClass
impl Unpin for TypeClass
impl UnsafeUnpin for TypeClass
impl UnwindSafe for TypeClass
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