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 duplicate 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 for EncodingBytes<G, N>
impl<G: PartialEq + GenericCurveAffine, const N: usize> PartialEq for EncodingBytes<G, N>
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> StructuralPartialEq for EncodingBytes<G, N>
Auto Trait Implementations§
impl<G, const N: usize> Freeze for EncodingBytes<G, N>
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
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
)