[][src]Enum lnpbp::rgb::schema::Bits

#[repr(u8)]
#[non_exhaustive]pub enum Bits {
    Bit8,
    Bit16,
    Bit32,
    Bit64,
}

NB: For now, we support only up to 128-bit integers and 64-bit floats; nevertheless RGB schema standard allows up to 256-byte numeric types. Support for larger types can be added later.

Variants (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.
Bit8
Bit16
Bit32
Bit64

Implementations

impl Bits[src]

pub fn max_value(&self) -> u128[src]

pub fn byte_len(&self) -> usize[src]

pub fn bit_len(&self) -> usize[src]

Trait Implementations

impl Clone for Bits[src]

impl Copy for Bits[src]

impl Debug for Bits[src]

impl Display for Bits[src]

impl Eq for Bits[src]

impl FromPrimitive for Bits[src]

impl Ord for Bits[src]

impl PartialEq<Bits> for Bits[src]

impl PartialOrd<Bits> for Bits[src]

impl StrictDecode for Bits[src]

type Error = Error

Implementation-dependent error type

impl StrictEncode for Bits[src]

type Error = Error

Implementation-dependent error type

impl StructuralEq for Bits[src]

impl StructuralPartialEq for Bits[src]

impl ToPrimitive for Bits[src]

Auto Trait Implementations

impl RefUnwindSafe for Bits

impl Send for Bits

impl Sync for Bits

impl Unpin for Bits

impl UnwindSafe for Bits

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,