Struct BitLength

Source
pub struct BitLength<const BITS: usize>;
Expand description

an empty struct used to represent a specific bit length. this is then combined with some traits (ExactAssociatedStorage, AssociatedStorage) to perform operations on the specified bit length.

Trait Implementations§

Source§

impl AssociatedStorage for BitLength<1>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<10>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<11>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<12>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<13>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<14>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<15>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<16>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<17>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<18>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<19>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<2>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<20>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<21>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<22>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<23>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<24>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<25>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<26>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<27>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<28>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<29>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<3>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<30>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<31>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<32>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<33>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<34>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<35>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<36>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<37>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<38>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<39>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<4>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<40>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<41>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<42>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<43>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<44>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<45>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<46>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<47>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<48>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<49>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<5>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<50>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<51>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<52>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<53>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<54>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<55>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<56>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<57>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<58>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<59>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<6>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<60>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<61>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<62>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<63>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<64>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<7>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<8>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl AssociatedStorage for BitLength<9>

Source§

type Storage = <BitLength<{ exact_associated_storage_bit_length($bit_length) }> as ExactAssociatedStorage>::Storage

the storage type required for storing that amount of bits. for example for bit lengths 0..8 this will be u8.
Source§

impl ExactAssociatedStorage for BitLength<16>

Source§

type Storage = u16

the exact storage type, for example u8 or u16.
Source§

impl ExactAssociatedStorage for BitLength<32>

Source§

type Storage = u32

the exact storage type, for example u8 or u16.
Source§

impl ExactAssociatedStorage for BitLength<64>

Source§

type Storage = u64

the exact storage type, for example u8 or u16.
Source§

impl ExactAssociatedStorage for BitLength<8>

Source§

type Storage = u8

the exact storage type, for example u8 or u16.

Auto Trait Implementations§

§

impl<const BITS: usize> Freeze for BitLength<BITS>

§

impl<const BITS: usize> RefUnwindSafe for BitLength<BITS>

§

impl<const BITS: usize> Send for BitLength<BITS>

§

impl<const BITS: usize> Sync for BitLength<BITS>

§

impl<const BITS: usize> Unpin for BitLength<BITS>

§

impl<const BITS: usize> UnwindSafe for BitLength<BITS>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.