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.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for OptionalVec<T> where
T: RefUnwindSafe,
impl<T> Send for OptionalVec<T> where
T: Send,
impl<T> Sync for OptionalVec<T> where
T: Sync,
impl<T> Unpin for OptionalVec<T> where
T: Unpin,
impl<T> UnwindSafe for OptionalVec<T> where
T: UnwindSafe,