Skip to main content

Pattern

Enum Pattern 

Source
pub enum Pattern {
Show 39 variants All(Vec<Pattern>), Any(Vec<Pattern>), Not(Box<Pattern>), From(Matcher), Subject(Matcher), Body(Matcher), To(Matcher), Cc(Matcher), Recipient(Matcher), Sender(Matcher), Header(Matcher), MessageId(Matcher), References(Matcher), Whole(Matcher), Label(Matcher), FromOrTo(Matcher), Read, Old, Replied, Subscribed, Thread(Box<Pattern>), Parent(Box<Pattern>), Child(Box<Pattern>), Collapsed, Unreferenced, Date { min: Option<i64>, max: Option<i64>, }, Received { min: Option<i64>, max: Option<i64>, }, Number { min: Option<Bound>, max: Option<Bound>, }, Size { min: Option<u64>, max: Option<u64>, }, Duplicate, New, Flagged, Deleted, Unread, Tagged, ToMe, FromMe, ToList, Default(Matcher),
}

Variants§

§

All(Vec<Pattern>)

§

Any(Vec<Pattern>)

§

Not(Box<Pattern>)

§

From(Matcher)

§

Subject(Matcher)

§

Body(Matcher)

§

To(Matcher)

§

Cc(Matcher)

§

Recipient(Matcher)

~C: any To or Cc address.

§

Sender(Matcher)

~e: the Sender header (read from disk on demand).

§

Header(Matcher)

~h: any header line, as Name: value text (read from disk).

§

MessageId(Matcher)

~i: the Message-ID.

§

References(Matcher)

~x: any References / In-Reply-To id.

§

Whole(Matcher)

~B: any header or the body (the whole message text).

§

Label(Matcher)

~y: the X-Label header.

§

FromOrTo(Matcher)

~L: an address in From, To or Cc.

§

Read

~R: read (seen).

§

Old

~O: old — unread but not new this session.

§

Replied

~Q: replied to (the Answered flag).

§

Subscribed

~u: addressed to a subscribed mailing list.

§

Thread(Box<Pattern>)

~(P): some message in the same thread matches P.

§

Parent(Box<Pattern>)

~<(P): the immediate parent matches P.

§

Child(Box<Pattern>)

~>(P): an immediate child matches P.

§

Collapsed

~v: the message heads a collapsed thread.

§

Unreferenced

~$: no parent and no children, in a threaded index.

§

Date

~d: epoch-second bounds, min inclusive, max exclusive.

Fields

§

Received

~r: the same bounds against the file’s delivery time.

Fields

§

Number

~m: index-number range, inclusive, over the numbering on screen; . is the selected message and $ the last one.

Fields

§

Size

~z: size in bytes, min inclusive, max inclusive.

Fields

§

Duplicate

~=: the Message-ID occurs more than once in the mailbox.

§

New

§

Flagged

§

Deleted

§

Unread

§

Tagged

§

ToMe

~p: addressed to one of my addresses.

§

FromMe

~P: sent by me (From is one of my addresses).

§

ToList

~l: addressed to a known mailing list.

§

Default(Matcher)

Bare word: matches subject or from.

Trait Implementations§

Source§

impl Clone for Pattern

Source§

fn clone(&self) -> Pattern

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Pattern

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for Pattern

Source§

impl PartialEq for Pattern

Source§

fn eq(&self, other: &Pattern) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Pattern

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.