Enum mortal::sequence::FindResult
source · 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>
impl<'a, V: Clone> FindResult<&'a V>
sourcepub fn cloned(self) -> FindResult<V>
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>
impl<V: Clone> Clone for FindResult<V>
source§fn clone(&self) -> FindResult<V>
fn clone(&self) -> FindResult<V>
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<V: Debug> Debug for FindResult<V>
impl<V: Debug> Debug for FindResult<V>
source§impl<V: PartialEq> PartialEq<FindResult<V>> for FindResult<V>
impl<V: PartialEq> PartialEq<FindResult<V>> for FindResult<V>
source§fn eq(&self, other: &FindResult<V>) -> bool
fn eq(&self, other: &FindResult<V>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.