Struct pairing_ce::EncodingBytes[][src]

pub struct EncodingBytes<G: GenericCurveAffine, const N: usize> { /* fields omitted */ }

Implementations

impl<G: GenericCurveAffine, const N: usize> EncodingBytes<G, N>[src]

pub fn empty() -> Self[src]

Creates an empty representation.

pub fn size() -> usize[src]

Returns the number of bytes consumed by this representation.

pub fn into_bytes(self) -> [u8; N][src]

Transforms into raw bytes without a type marker

pub fn from_bytes(bytes: [u8; N]) -> Self[src]

Transforms from raw bytes by adding a type marker

Trait Implementations

impl<G: GenericCurveAffine, const N: usize> AsMut<[u8]> for EncodingBytes<G, N>[src]

impl<G: GenericCurveAffine, const N: usize> AsRef<[u8]> for EncodingBytes<G, N>[src]

impl<G: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>[src]

impl<G: Copy + GenericCurveAffine, const N: usize> Copy for EncodingBytes<G, N>[src]

impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>[src]

impl<G: Eq + GenericCurveAffine, const N: usize> Eq for EncodingBytes<G, N>[src]

impl<G: Hash + GenericCurveAffine, const N: usize> Hash for EncodingBytes<G, N>[src]

impl<G: PartialEq + GenericCurveAffine, const N: usize> PartialEq<EncodingBytes<G, N>> for EncodingBytes<G, N>[src]

impl<G: GenericCurveAffine, const N: usize> StructuralEq for EncodingBytes<G, N>[src]

impl<G: GenericCurveAffine, const N: usize> StructuralPartialEq for EncodingBytes<G, N>[src]

Auto Trait Implementations

impl<G, const N: usize> RefUnwindSafe for EncodingBytes<G, N> where
    G: RefUnwindSafe

impl<G, const N: usize> Send for EncodingBytes<G, N>

impl<G, const N: usize> Sync for EncodingBytes<G, N>

impl<G, const N: usize> Unpin for EncodingBytes<G, N> where
    G: Unpin

impl<G, const N: usize> UnwindSafe for EncodingBytes<G, N> where
    G: 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> From<T> for T[src]

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

impl<T> ToHex for T where
    T: AsRef<[u8]>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.