pub struct U32s<const N: usize> { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl<const N: usize> BFieldCodec for U32s<N>
impl<const N: usize> BFieldCodec for U32s<N>
type Error = BFieldCodecError
fn decode(sequence: &[BFieldElement]) -> Result<Box<Self>, Self::Error>
fn encode(&self) -> Vec<BFieldElement>
Source§fn static_length() -> Option<usize>
fn static_length() -> Option<usize>
Returns the length in number of BFieldElements if it is known at compile-time.
Otherwise, None.
Source§impl<'de, const N: usize> Deserialize<'de> for U32s<N>
impl<'de, const N: usize> Deserialize<'de> for U32s<N>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<const N: usize> Distribution<U32s<N>> for Standard
impl<const N: usize> Distribution<U32s<N>> for Standard
Source§impl<const N: usize> GetSize for U32s<N>
impl<const N: usize> GetSize for U32s<N>
Source§fn get_heap_size(&self) -> usize
fn get_heap_size(&self) -> usize
Determines how many bytes this object occupies inside the heap. Read more
Source§fn get_stack_size() -> usize
fn get_stack_size() -> usize
Determines how may bytes this object occupies inside the stack. Read more
Source§impl<const N: usize> Ord for U32s<N>
impl<const N: usize> Ord for U32s<N>
Source§impl<const N: usize> PartialOrd for U32s<N>
impl<const N: usize> PartialOrd for U32s<N>
impl<const N: usize> Copy for U32s<N>
impl<const N: usize> Eq for U32s<N>
impl<const N: usize> StructuralPartialEq for U32s<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for U32s<N>
impl<const N: usize> RefUnwindSafe for U32s<N>
impl<const N: usize> Send for U32s<N>
impl<const N: usize> Sync for U32s<N>
impl<const N: usize> Unpin for U32s<N>
impl<const N: usize> UnwindSafe for U32s<N>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more