Struct recrypt::api::Plaintext [−]
pub struct Plaintext { /* fields omitted */ }
Implementations
impl Plaintext
impl Plaintext
pub fn new_from_slice(bytes: &[u8]) -> Result<Plaintext, RecryptErr>
pub fn new_from_slice(bytes: &[u8]) -> Result<Plaintext, RecryptErr>
construct $t from byte slice. Input slice must be exactly the correct length for the type.
Returns
Ok($t) or Err($RecryptErr::InputWrongSize]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Plaintext
impl UnwindSafe for Plaintext
Blanket Implementations
Mutably borrows from an owned value. Read more
Called to initialize a place to a valid value, after it is set to all-bits-zero. Read more