pub enum WordsError {
Show 14 variants
DuplicatePool {
pool: String,
},
EmptyPool {
pool: String,
},
Parse {
pool: String,
entry: usize,
at: usize,
reason: ParseReason,
},
UnknownSlot {
pool: String,
entry: usize,
slot: String,
},
UnknownModifier {
pool: String,
entry: usize,
slot: String,
modifier: String,
},
Misplaced {
pool: String,
entry: usize,
slot: String,
modifier: String,
},
MissingForm {
pool: String,
entry: usize,
binding: String,
form: String,
},
Recursion {
cycle: Vec<String>,
},
NothingToProduce {
pool: String,
},
UnknownPool {
pool: String,
},
Exhausted {
pool: String,
},
NotEnoughDistinct {
pool: String,
wanted: usize,
got: usize,
},
NoSuchMember {
index: usize,
len: usize,
},
MissingContext {
name: String,
},
}Variants§
DuplicatePool
EmptyPool
Parse
UnknownSlot
UnknownModifier
Misplaced
MissingForm
Recursion
NothingToProduce
UnknownPool
Exhausted
NotEnoughDistinct
NoSuchMember
MissingContext
Trait Implementations§
Source§impl Clone for WordsError
impl Clone for WordsError
Source§fn clone(&self) -> WordsError
fn clone(&self) -> WordsError
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 WordsError
impl Debug for WordsError
Source§impl Display for WordsError
impl Display for WordsError
Source§impl Error for WordsError
impl Error for WordsError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for WordsError
impl PartialEq for WordsError
Source§fn eq(&self, other: &WordsError) -> bool
fn eq(&self, other: &WordsError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for WordsError
impl StructuralPartialEq for WordsError
Auto Trait Implementations§
impl Freeze for WordsError
impl RefUnwindSafe for WordsError
impl Send for WordsError
impl Sync for WordsError
impl Unpin for WordsError
impl UnsafeUnpin for WordsError
impl UnwindSafe for WordsError
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