pub enum FindResult<V> {
    NotFound,
    Incomplete,
    Undecided(V),
    Found(V),
}
Expand description

Represents the result of a SequenceMap::find operation.

Variants§

§

NotFound

No contained sequences begin with the provided input sequence.

§

Incomplete

One or more sequences begin with the provided input sequence, but the sequence does not represent a complete sequence.

§

Undecided(V)

A sequence was found exactly matching the input sequence; additionally, one or more sequences begin with the input sequence.

§

Found(V)

A sequence was found exactly matching the input sequence; no additional partially-matching sequences exist.

Implementations§

source§

impl<'a, V: Clone> FindResult<&'a V>

source

pub fn cloned(self) -> FindResult<V>

Maps FindResult<&V> to FindResult<V> by cloning the contents of the result value.

Trait Implementations§

source§

impl<V: Clone> Clone for FindResult<V>

source§

fn clone(&self) -> FindResult<V>

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl<V: Debug> Debug for FindResult<V>

source§

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

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

impl<V: PartialEq> PartialEq<FindResult<V>> for FindResult<V>

source§

fn eq(&self, other: &FindResult<V>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<V: Copy> Copy for FindResult<V>

source§

impl<V: Eq> Eq for FindResult<V>

source§

impl<V> StructuralEq for FindResult<V>

source§

impl<V> StructuralPartialEq for FindResult<V>

Auto Trait Implementations§

§

impl<V> RefUnwindSafe for FindResult<V>where V: RefUnwindSafe,

§

impl<V> Send for FindResult<V>where V: Send,

§

impl<V> Sync for FindResult<V>where V: Sync,

§

impl<V> Unpin for FindResult<V>where V: Unpin,

§

impl<V> UnwindSafe for FindResult<V>where V: UnwindSafe,

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

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

const: unstable · 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 Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.
source§

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

§

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

The type returned in the event of a conversion error.
const: unstable · source§

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

Performs the conversion.