Skip to content

NonEmptyVec

Functions

  • new - Wraps inner, failing if it’s empty.

firma_secret_provider::non_empty::vec::NonEmptyVec::new

Section titled “firma_secret_provider::non_empty::vec::NonEmptyVec::new”

Function

Wraps inner, failing if it’s empty.

Returns [EmptyError] if inner is empty.

fn new(inner: Vec<T>) -> Result<Self, EmptyError>