pub struct MimePattern {
ty: MimePart,
subtype: MimePart,
}Expand description
A MIME pattern: type/subtype, with either half (or both) as *.
Fields§
§ty: MimePart§subtype: MimePartImplementations§
Source§impl MimePattern
impl MimePattern
pub(crate) fn parse(s: &str) -> Result<Self, ScopeParseError>
pub(crate) fn contains(&self, other: &MimePattern) -> bool
pub(crate) fn intersect(&self, other: &MimePattern) -> Option<MimePattern>
Trait Implementations§
Source§impl Clone for MimePattern
impl Clone for MimePattern
Source§fn clone(&self) -> MimePattern
fn clone(&self) -> MimePattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MimePattern
impl Debug for MimePattern
Source§impl Display for MimePattern
impl Display for MimePattern
Source§impl Hash for MimePattern
impl Hash for MimePattern
Source§impl Ord for MimePattern
impl Ord for MimePattern
Source§fn cmp(&self, other: &MimePattern) -> Ordering
fn cmp(&self, other: &MimePattern) -> Ordering
1.21.0 (const: unstable) · 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
Source§impl PartialEq for MimePattern
impl PartialEq for MimePattern
Source§fn eq(&self, other: &MimePattern) -> bool
fn eq(&self, other: &MimePattern) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for MimePattern
impl PartialOrd for MimePattern
impl Eq for MimePattern
impl StructuralPartialEq for MimePattern
Auto Trait Implementations§
impl Freeze for MimePattern
impl RefUnwindSafe for MimePattern
impl Send for MimePattern
impl Sync for MimePattern
impl Unpin for MimePattern
impl UnsafeUnpin for MimePattern
impl UnwindSafe for MimePattern
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.