AsBytes

Trait AsBytes 

Source
pub trait AsBytes {
    // Required method
    fn as_bytes(&self) -> Vec<u8> ;
}
Expand description

Serialize function without args Used for serialization when formatting options are not relevant

Required Methods§

Source

fn as_bytes(&self) -> Vec<u8>

Default serialize without args

Implementations on Foreign Types§

Source§

impl AsBytes for u32

Available on crate feature alloc only.
Source§

fn as_bytes(&self) -> Vec<u8>

Source§

impl AsBytes for u64

Available on crate feature alloc only.
Source§

fn as_bytes(&self) -> Vec<u8>

Implementors§

Source§

impl AsBytes for FieldElement<Degree4BabyBearExtensionField>

Available on crate feature alloc only.
Source§

impl AsBytes for FieldElement<Degree4BabyBearU32ExtensionField>

Available on crate feature alloc only.
Source§

impl<E> AsBytes for ShortWeierstrassProjectivePoint<E>

Available on crate feature alloc only.
Source§

impl<M, const NUM_LIMBS: usize> AsBytes for FieldElement<MontgomeryBackendPrimeField<M, NUM_LIMBS>>
where M: IsModulus<UnsignedInteger<NUM_LIMBS>> + Clone + Debug,

Available on crate feature alloc only.
Source§

impl<const MODULUS: u32> AsBytes for FieldElement<U32MontgomeryBackendPrimeField<MODULUS>>

Available on crate feature alloc only.
Source§

impl<const NUM_LIMBS: usize> AsBytes for UnsignedInteger<NUM_LIMBS>

Available on crate feature alloc only.