franklin_crypto::plonk::circuit::byte

Trait IntoBytes

Source
pub trait IntoBytes<E: Engine> {
    // Provided methods
    fn encoding_len() -> usize { ... }
    fn into_le_bytes<CS: ConstraintSystem<E>>(
        &self,
        cs: &mut CS,
    ) -> Result<Vec<Byte<E>>, SynthesisError> { ... }
    fn into_be_bytes<CS: ConstraintSystem<E>>(
        &self,
        cs: &mut CS,
    ) -> Result<Vec<Byte<E>>, SynthesisError> { ... }
}

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<E: Engine> IntoBytes<E> for Num<E>

Source§

impl<E: Engine> IntoBytes<E> for Boolean