Enum bindgen::callbacks::EnumVariantValue
source · [−]Expand description
A constant value assigned to an enumeration variant.
Variants
Boolean(bool)
A boolean constant.
Signed(i64)
A signed constant.
Unsigned(u64)
An unsigned constant.
Trait Implementations
sourceimpl Clone for EnumVariantValue
impl Clone for EnumVariantValue
sourcefn clone(&self) -> EnumVariantValue
fn clone(&self) -> EnumVariantValue
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for EnumVariantValue
impl Debug for EnumVariantValue
sourceimpl Hash for EnumVariantValue
impl Hash for EnumVariantValue
sourceimpl Ord for EnumVariantValue
impl Ord for EnumVariantValue
sourceimpl PartialEq<EnumVariantValue> for EnumVariantValue
impl PartialEq<EnumVariantValue> for EnumVariantValue
sourcefn eq(&self, other: &EnumVariantValue) -> bool
fn eq(&self, other: &EnumVariantValue) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EnumVariantValue) -> bool
fn ne(&self, other: &EnumVariantValue) -> bool
This method tests for !=
.
sourceimpl PartialOrd<EnumVariantValue> for EnumVariantValue
impl PartialOrd<EnumVariantValue> for EnumVariantValue
sourcefn partial_cmp(&self, other: &EnumVariantValue) -> Option<Ordering>
fn partial_cmp(&self, other: &EnumVariantValue) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for EnumVariantValue
impl Eq for EnumVariantValue
impl StructuralEq for EnumVariantValue
impl StructuralPartialEq for EnumVariantValue
Auto Trait Implementations
impl RefUnwindSafe for EnumVariantValue
impl Send for EnumVariantValue
impl Sync for EnumVariantValue
impl Unpin for EnumVariantValue
impl UnwindSafe for EnumVariantValue
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more