pub type Attributes = SetOfVec<Attribute>;
Expand description
X.501 Attributes
as defined in RFC 2986 Section 4.
Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }}
Aliased Type§
struct Attributes { /* private fields */ }
Implementations
Source§impl<T> SetOfVec<T>where
T: DerOrd,
impl<T> SetOfVec<T>where
T: DerOrd,
Sourcepub fn from_iter<I>(iter: I) -> Result<SetOfVec<T>, Error>where
I: IntoIterator<Item = T>,
pub fn from_iter<I>(iter: I) -> Result<SetOfVec<T>, Error>where
I: IntoIterator<Item = T>,
Create a new SetOfVec
from the given iterator.
Note: this is an inherent method instead of an impl of the
FromIterator
trait in order to be fallible.
Sourcepub fn add(&mut self, item: T) -> Result<(), Error>
👎Deprecated since 0.7.6: use insert
or insert_ordered
instead
pub fn add(&mut self, item: T) -> Result<(), Error>
insert
or insert_ordered
insteadSourcepub fn insert(&mut self, item: T) -> Result<(), Error>
pub fn insert(&mut self, item: T) -> Result<(), Error>
Insert an item into this SetOfVec
. Must be unique.
Sourcepub fn insert_ordered(&mut self, item: T) -> Result<(), Error>
pub fn insert_ordered(&mut self, item: T) -> Result<(), Error>
Trait Implementations
Source§impl<'a, T> DecodeValue<'a> for SetOfVec<T>
impl<'a, T> DecodeValue<'a> for SetOfVec<T>
Source§impl<'a, T> EncodeValue for SetOfVec<T>
impl<'a, T> EncodeValue for SetOfVec<T>
Source§impl<T> Ord for SetOfVec<T>
impl<T> Ord for SetOfVec<T>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more