Trait lambdaworks_math::traits::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

source§

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

source§

impl AsBytes for u64

source§

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

Implementors§

source§

impl<E> AsBytes for ShortWeierstrassProjectivePoint<E>

source§

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

source§

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