Struct snarkvm_r1cs::OptionalVec[][src]

pub struct OptionalVec<T> { /* fields omitted */ }

Implementations

Creates a new OptionalVec with the given underlying capacity.

Inserts a new value either into the first existing hole or extending the vector of values, i.e. pushing it to its end.

Returns the index of the next value inserted into the OptionalVec.

Removes a value at the specified index; assumes that the index points to an existing value that is a Some(T) (i.e. not a hole).

Iterates over all the Some(T) values in the list.

Returns the number of Some(T) values.

Returns true if there are no Some(T) values

Trait Implementations

Returns the “default value” for a type. Read more

The returned type after indexing.

Performs the indexing (container[index]) operation. Read more

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.