pub trait Visibility: Equal<Output = Self::Boolean> + ToBytes + FromBytes + ToBits + FromBits + ToFields + FromFields {
    type Boolean: BooleanTrait;

    // Required method
    fn size_in_fields(&self) -> Result<u16, Error>;
}

Required Associated Types§

Required Methods§

source

fn size_in_fields(&self) -> Result<u16, Error>

Returns the number of field elements to encode self.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl<E> Visibility for Group<E>
where E: Environment,

§

fn size_in_fields(&self) -> Result<u16, Error>

Returns the number of field elements to encode self.

§

type Boolean = Boolean<E>

§

impl<E, I> Visibility for Integer<E, I>
where E: Environment, I: IntegerType,

§

fn size_in_fields(&self) -> Result<u16, Error>

Returns the number of field elements to encode self.

§

type Boolean = Boolean<E>

Implementors§