Skip to main content

FromSized

Trait FromSized 

Source
pub trait FromSized: Size<Size: ArrayLength> {
    // Required method
    fn from_sized(data: &GenericArray<u8, Self::Size>) -> Self;
}

Required Methods§

Source

fn from_sized(data: &GenericArray<u8, Self::Size>) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl FromSized for u8

Source§

fn from_sized(data: &GenericArray<u8, Self::Size>) -> Self

Source§

impl<A: FromSized<Size = An>, B: FromSized<Size = Bn>, An, Bn: Add<An, Output: ArrayLength + Sub<An, Output = Bn>>> FromSized for (A, B)

Source§

fn from_sized(data: &GenericArray<u8, Self::Size>) -> Self

Implementors§