Struct pairing_ce::EncodingBytes [−][src]
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]
fn clone(&self) -> EncodingBytes<G, N>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
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 ne(&self, other: &EncodingBytes<G, N>) -> bool
[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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
pub fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
pub fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
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]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,