Struct pairing_ce::bls12_381::G1Compressed[][src]

pub struct G1Compressed(_);

Trait Implementations

impl AsMut<[u8]> for G1Compressed[src]

fn as_mut(&mut self) -> &mut [u8][src]

Performs the conversion.

impl AsRef<[u8]> for G1Compressed[src]

fn as_ref(&self) -> &[u8][src]

Performs the conversion.

impl Clone for G1Compressed[src]

fn clone(&self) -> G1Compressed[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for G1Compressed[src]

fn fmt(&self, formatter: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl EncodedPoint for G1Compressed[src]

type Affine = G1Affine

fn empty() -> Self[src]

Creates an empty representation.

fn size() -> usize[src]

Returns the number of bytes consumed by this representation.

fn into_affine(&self) -> Result<G1Affine, GroupDecodingError>[src]

Converts an EncodedPoint into a CurveAffine element, if the encoding represents a valid element. Read more

fn into_affine_unchecked(&self) -> Result<G1Affine, GroupDecodingError>[src]

Converts an EncodedPoint into a CurveAffine element, without guaranteeing that the encoding represents a valid element. This is useful when the caller knows the encoding is valid already. Read more

fn from_affine(affine: G1Affine) -> Self[src]

Creates an EncodedPoint from an affine point, as long as the point is not the point at infinity. Read more

impl Copy for G1Compressed[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

pub fn encode_hex<U>(&self) -> U where
    U: FromIterator<char>, 
[src]

Encode the hex strict representing self into the result. Lower case letters are used (e.g. f9b4ca) Read more

pub fn encode_hex_upper<U>(&self) -> U where
    U: FromIterator<char>, 
[src]

Encode the hex strict representing self into the result. Upper case letters are used (e.g. F9B4CA) Read more

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.