vec
Module: non_empty::vec
Section titled “Module: non_empty::vec”Contents
Section titled “Contents”Structs
EmptyError- Returned by [NonEmptyVec::new] when the input is empty.NonEmptyVec- AVec<T>guaranteed to hold at least one element.
firma_secret_provider::non_empty::vec::EmptyError
Section titled “firma_secret_provider::non_empty::vec::EmptyError”Struct
Returned by [NonEmptyVec::new] when the input is empty.
Unit Struct
Traits: Error
Trait Implementations:
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result
- Display
fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
firma_secret_provider::non_empty::vec::NonEmptyVec
Section titled “firma_secret_provider::non_empty::vec::NonEmptyVec”Struct
A Vec<T> guaranteed to hold at least one element.
Generic Parameters:
- T
Tuple Struct: ()
Methods:
fn new(inner: Vec<T>) -> Result<Self, EmptyError>- Wrapsinner, failing if it’s empty.
Traits: Eq
Trait Implementations:
- Deserialize
fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error>
- Clone
fn clone(self: &Self) -> NonEmptyVec<T>
- Deref
fn deref(self: &Self) -> &<Self as >::Target
- PartialEq
fn eq(self: &Self, other: &NonEmptyVec<T>) -> bool
- Serialize
fn serialize<__S>(self: &Self, __serializer: __S) -> _serde::__private228::Result<<__S as >::Ok, <__S as >::Error>
- Debug
fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result