[][src]Struct threshold_crypto::serde_impl::FieldWrap

pub struct FieldWrap<B>(pub B);

A wrapper type to facilitate serialization and deserialization of field elements.

Implementations

impl FieldWrap<Fr>[src]

pub fn into_inner(self) -> Fr[src]

Returns the wrapped field element.

Trait Implementations

impl<'de> Deserialize<'de> for FieldWrap<Fr>[src]

impl<B: Borrow<Fr>> Serialize for FieldWrap<B>[src]

Auto Trait Implementations

impl<B> RefUnwindSafe for FieldWrap<B> where
    B: RefUnwindSafe

impl<B> Send for FieldWrap<B> where
    B: Send

impl<B> Sync for FieldWrap<B> where
    B: Sync

impl<B> Unpin for FieldWrap<B> where
    B: Unpin

impl<B> UnwindSafe for FieldWrap<B> where
    B: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,