Enum sway_types::integer_bits::IntegerBits
source · pub enum IntegerBits {
Eight,
Sixteen,
ThirtyTwo,
SixtyFour,
}
Variants§
Trait Implementations§
source§impl Clone for IntegerBits
impl Clone for IntegerBits
source§fn clone(&self) -> IntegerBits
fn clone(&self) -> IntegerBits
Returns a copy 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 IntegerBits
impl Debug for IntegerBits
source§impl Display for IntegerBits
impl Display for IntegerBits
source§impl Hash for IntegerBits
impl Hash for IntegerBits
source§impl Ord for IntegerBits
impl Ord for IntegerBits
source§fn cmp(&self, other: &IntegerBits) -> Ordering
fn cmp(&self, other: &IntegerBits) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<IntegerBits> for IntegerBits
impl PartialEq<IntegerBits> for IntegerBits
source§fn eq(&self, other: &IntegerBits) -> bool
fn eq(&self, other: &IntegerBits) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<IntegerBits> for IntegerBits
impl PartialOrd<IntegerBits> for IntegerBits
source§fn partial_cmp(&self, other: &IntegerBits) -> Option<Ordering>
fn partial_cmp(&self, other: &IntegerBits) -> Option<Ordering>
1.0.0 · source§fn 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 moreimpl Copy for IntegerBits
impl Eq for IntegerBits
impl StructuralEq for IntegerBits
impl StructuralPartialEq for IntegerBits
Auto Trait Implementations§
impl RefUnwindSafe for IntegerBits
impl Send for IntegerBits
impl Sync for IntegerBits
impl Unpin for IntegerBits
impl UnwindSafe for IntegerBits
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more