Trait TryKeyInit
pub trait TryKeyInit: KeySizeUser + Sized
Types which can be fallibly initialized from a key.
Required Methods
fn new(key: &Key<Self>) -> Result<Self, InvalidKey>Create new value from a fixed-size key.
Errors
If the key is considered invalid according to rules specific to the implementing type.
Provided Methods
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidKey>Create new value from a variable size key.
Errors
If the key is considered invalid according to rules specific to the implementing type.