Trait TryFromPlaintext

Source
pub trait TryFromPlaintext
where Self: Sized,
{ // Required method fn try_from_plaintext( plaintext: &Plaintext, params: &Params, ) -> Result<Self>; }
Expand description

This trait specifies one may attempt to convert a plaintext into this type.

Required Methods§

Source

fn try_from_plaintext(plaintext: &Plaintext, params: &Params) -> Result<Self>

Attempts to turn a Plaintext into Self. On success, returns

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<T, const N: usize> TryFromPlaintext for [T; N]

Source§

fn try_from_plaintext(plaintext: &Plaintext, params: &Params) -> Result<Self>

Implementors§