FromTrustedByteArray

Trait FromTrustedByteArray 

Source
pub trait FromTrustedByteArray<const LENGTH: usize>: Sized {
    // Required method
    fn from_trusted_byte_array(bytes: &[u8; LENGTH]) -> FastCryptoResult<Self>;
}
Expand description

Faster deserialization in case the input is trusted (otherwise it can be insecure).

Required Methods§

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.

Implementors§