Struct throne::State [−][src]
pub struct State { /* fields omitted */ }
Expand description
Stores a set of Phrases.
Implementations
Removes the first occurrence of phrase
from the state.
Returns false
if the phrase could not be found.
Removes any phrases matching the provided pattern
.
If match_pattern_length
is true
, only phrases matching the exact length of the provided
pattern
will be removed. Otherwise, phrases longer than the provided pattern
may be removed,
if their beginning subset matches the pattern.
Adds a new phrase
to the State
and returns a PhraseId referencing the newly added phrase.
Returns an iterator of references to phrases in the State
.
Constructs and returns a Vec of all phrases in the State
.
Returns an iterator of references to phrases matching the provided pattern
.
If match_pattern_length
is true
, only phrases matching the exact length of the provided
pattern
will be returned. Otherwise, phrases longer than the provided pattern
may be returned,
if their beginning subset matches the pattern.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for State
impl UnwindSafe for State
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V