pub enum BuiltInError {
Show 27 variants
DoubleTooSmall {
found: f64,
min: f64,
},
DoubleTooBig {
found: f64,
max: f64,
},
FloatTooSmall {
found: f32,
min: f32,
},
FloatTooBig {
found: f32,
max: f32,
},
IntegerTooSmall {
found: i32,
min: i32,
},
IntegerTooBig {
found: i32,
max: i32,
},
LongTooSmall {
found: i64,
min: i64,
},
LongTooBig {
found: i64,
max: i64,
},
LiteralIncorrect {
expected: String,
},
ReaderExpectedStartOfQuote,
ReaderExpectedEndOfQuote,
ReaderInvalidEscape {
character: char,
},
ReaderInvalidBool {
value: String,
},
ReaderInvalidInt {
value: String,
},
ReaderExpectedInt,
ReaderInvalidLong {
value: String,
},
ReaderExpectedLong,
ReaderInvalidDouble {
value: String,
},
ReaderExpectedDouble,
ReaderInvalidFloat {
value: String,
},
ReaderExpectedFloat,
ReaderExpectedBool,
ReaderExpectedSymbol {
symbol: char,
},
DispatcherUnknownCommand,
DispatcherUnknownArgument,
DispatcherExpectedArgumentSeparator,
DispatcherParseException {
message: String,
},
}
Variants§
DoubleTooSmall
DoubleTooBig
FloatTooSmall
FloatTooBig
IntegerTooSmall
IntegerTooBig
LongTooSmall
LongTooBig
LiteralIncorrect
ReaderExpectedStartOfQuote
ReaderExpectedEndOfQuote
ReaderInvalidEscape
ReaderInvalidBool
ReaderInvalidInt
ReaderExpectedInt
ReaderInvalidLong
ReaderExpectedLong
ReaderInvalidDouble
ReaderExpectedDouble
ReaderInvalidFloat
ReaderExpectedFloat
ReaderExpectedBool
ReaderExpectedSymbol
DispatcherUnknownCommand
DispatcherUnknownArgument
DispatcherExpectedArgumentSeparator
DispatcherParseException
Implementations§
Source§impl BuiltInError
impl BuiltInError
pub fn create(self) -> CommandSyntaxError
pub fn create_with_context(self, reader: &StringReader) -> CommandSyntaxError
Trait Implementations§
Source§impl Clone for BuiltInError
impl Clone for BuiltInError
Source§fn clone(&self) -> BuiltInError
fn clone(&self) -> BuiltInError
Returns a duplicate 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 Debug for BuiltInError
impl Debug for BuiltInError
Source§impl PartialEq for BuiltInError
impl PartialEq for BuiltInError
impl StructuralPartialEq for BuiltInError
Auto Trait Implementations§
impl Freeze for BuiltInError
impl RefUnwindSafe for BuiltInError
impl Send for BuiltInError
impl Sync for BuiltInError
impl Unpin for BuiltInError
impl UnwindSafe for BuiltInError
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