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]
impl<G: GenericCurveAffine, const N: usize> EncodingBytes<G, N>
[src]pub fn into_bytes(self) -> [u8; N]
[src]
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]
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> AsMut<[u8]> for EncodingBytes<G, N>
[src]impl<G: GenericCurveAffine, const N: usize> AsRef<[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: Clone + GenericCurveAffine, const N: usize> Clone for EncodingBytes<G, N>
[src]fn clone(&self) -> EncodingBytes<G, N>
[src]
fn clone(&self) -> EncodingBytes<G, N>
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
[src]
impl<G: Debug + GenericCurveAffine, const N: usize> Debug for EncodingBytes<G, N>
[src]impl<G: Hash + GenericCurveAffine, const N: usize> Hash 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: PartialEq + GenericCurveAffine, const N: usize> PartialEq<EncodingBytes<G, N>> for EncodingBytes<G, N>
[src]fn eq(&self, other: &EncodingBytes<G, N>) -> bool
[src]
fn eq(&self, other: &EncodingBytes<G, N>) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &EncodingBytes<G, N>) -> bool
[src]
fn ne(&self, other: &EncodingBytes<G, N>) -> bool
[src]This method tests for !=
.
impl<G: Copy + GenericCurveAffine, const N: usize> Copy for EncodingBytes<G, N>
[src]
impl<G: Eq + GenericCurveAffine, const N: usize> Eq 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,
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,
G: Unpin,
impl<G, const N: usize> UnwindSafe for EncodingBytes<G, N> where
G: UnwindSafe,
G: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[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]
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]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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