Struct pairing_ce::EncodingBytes
source · [−]pub struct EncodingBytes<G: GenericCurveAffine, const N: usize> { /* private fields */ }
Implementations
sourceimpl<G: GenericCurveAffine, const N: usize> EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> EncodingBytes<G, N>
sourcepub fn into_bytes(self) -> [u8; N]
pub fn into_bytes(self) -> [u8; N]
Transforms into raw bytes without a type marker
sourcepub fn from_bytes(bytes: [u8; N]) -> Self
pub fn from_bytes(bytes: [u8; N]) -> Self
Transforms from raw bytes by adding a type marker
Trait Implementations
sourceimpl<G: GenericCurveAffine, const N: usize> AsMut<[u8]> for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> AsMut<[u8]> for EncodingBytes<G, N>
sourceimpl<G: GenericCurveAffine, const N: usize> AsRef<[u8]> for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> AsRef<[u8]> for EncodingBytes<G, N>
sourceimpl<G: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>
impl<G: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>
sourcefn clone(&self) -> EncodingBytes<G, N>
fn clone(&self) -> EncodingBytes<G, N>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
sourceimpl<G: Hash + GenericCurveAffine, const N: usize> Hash for EncodingBytes<G, N>
impl<G: Hash + GenericCurveAffine, const N: usize> Hash for EncodingBytes<G, N>
sourceimpl<G: PartialEq + GenericCurveAffine, const N: usize> PartialEq<EncodingBytes<G, N>> for EncodingBytes<G, N>
impl<G: PartialEq + GenericCurveAffine, const N: usize> PartialEq<EncodingBytes<G, N>> for EncodingBytes<G, N>
sourcefn eq(&self, other: &EncodingBytes<G, N>) -> bool
fn eq(&self, other: &EncodingBytes<G, N>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EncodingBytes<G, N>) -> bool
fn ne(&self, other: &EncodingBytes<G, N>) -> bool
This method tests for !=
.
impl<G: Copy + GenericCurveAffine, const N: usize> Copy for EncodingBytes<G, N>
impl<G: Eq + GenericCurveAffine, const N: usize> Eq for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> StructuralEq for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> StructuralPartialEq for EncodingBytes<G, N>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToHex for T where
T: AsRef<[u8]>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
sourcefn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self
into the result. Lower case
letters are used (e.g. f9b4ca
) Read more
sourcefn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
Encode the hex strict representing self
into the result. Upper case
letters are used (e.g. F9B4CA
) Read more