pub struct OIDMaskList { /* private fields */ }
Implementations§
Source§impl OIDMaskList
impl OIDMaskList
pub fn new(oid_masks: HashSet<OIDMask>) -> Self
pub fn new0(oid_mask: OIDMask) -> Self
pub fn new_any() -> Self
pub fn from_str_list(s_masks: &[&str]) -> EResult<Self>
pub fn from_string_list(s_masks: &[String]) -> EResult<Self>
pub fn matches(&self, oid: &OID) -> bool
pub fn matches_mask(&self, mask: &OIDMask) -> bool
pub fn is_empty(&self) -> bool
pub fn oid_masks(&self) -> &HashSet<OIDMask>
pub fn oid_masks_mut(&mut self) -> &mut HashSet<OIDMask>
pub fn as_string_vec(&self) -> Vec<String>
pub fn try_from_iter<I, T>(values: I) -> EResult<Self>
pub fn iter(&self) -> Iter<'_, OIDMask>
Trait Implementations§
Source§impl AsRef<OIDMaskList> for OIDMaskList
impl AsRef<OIDMaskList> for OIDMaskList
Source§fn as_ref(&self) -> &OIDMaskList
fn as_ref(&self) -> &OIDMaskList
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Clone for OIDMaskList
impl Clone for OIDMaskList
Source§fn clone(&self) -> OIDMaskList
fn clone(&self) -> OIDMaskList
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for OIDMaskList
impl Debug for OIDMaskList
Source§impl Default for OIDMaskList
impl Default for OIDMaskList
Source§fn default() -> OIDMaskList
fn default() -> OIDMaskList
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OIDMaskList
impl<'de> Deserialize<'de> for OIDMaskList
Source§fn deserialize<D>(deserializer: D) -> Result<OIDMaskList, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<OIDMaskList, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<OID> for OIDMaskList
impl From<OID> for OIDMaskList
Source§impl From<OIDMask> for OIDMaskList
impl From<OIDMask> for OIDMaskList
Source§impl From<OIDMaskList> for Value
impl From<OIDMaskList> for Value
Source§fn from(v: OIDMaskList) -> Value
fn from(v: OIDMaskList) -> Value
Converts to this type from the input type.
Source§impl FromIterator<OIDMask> for OIDMaskList
impl FromIterator<OIDMask> for OIDMaskList
Source§impl<'a> IntoIterator for &'a OIDMaskList
impl<'a> IntoIterator for &'a OIDMaskList
Source§impl IntoIterator for OIDMaskList
impl IntoIterator for OIDMaskList
Source§impl PartialEq for OIDMaskList
impl PartialEq for OIDMaskList
Source§impl Serialize for OIDMaskList
impl Serialize for OIDMaskList
Source§impl TryFrom<Value> for OIDMaskList
impl TryFrom<Value> for OIDMaskList
impl Eq for OIDMaskList
Auto Trait Implementations§
impl Freeze for OIDMaskList
impl RefUnwindSafe for OIDMaskList
impl Send for OIDMaskList
impl Sync for OIDMaskList
impl Unpin for OIDMaskList
impl UnwindSafe for OIDMaskList
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more