Struct pairing_ce::EncodingBytes
source · pub struct EncodingBytes<G: GenericCurveAffine, const N: usize> { /* private fields */ }
Implementations§
source§impl<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§
source§impl<G: GenericCurveAffine, const N: usize> AsMut<[u8]> for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> AsMut<[u8]> for EncodingBytes<G, N>
source§impl<G: GenericCurveAffine, const N: usize> AsRef<[u8]> for EncodingBytes<G, N>
impl<G: GenericCurveAffine, const N: usize> AsRef<[u8]> for EncodingBytes<G, N>
source§impl<G: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>
impl<G: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>
source§fn clone(&self) -> EncodingBytes<G, N>
fn clone(&self) -> EncodingBytes<G, N>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
source§impl<G: Hash + GenericCurveAffine, const N: usize> Hash for EncodingBytes<G, N>
impl<G: Hash + GenericCurveAffine, const N: usize> Hash for EncodingBytes<G, N>
source§impl<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>
source§fn 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 ==
.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§
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere
T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)