pub enum SymbolError {
BadEscape,
ShortInput,
}
Expand description
An error happened when reading a symbol.
Variants
BadEscape
An illegal escape sequence was encountered.
ShortInput
Unexpected end of input.
This can only happen in a decimal escape sequence.
Trait Implementations
sourceimpl Clone for SymbolError
impl Clone for SymbolError
sourcefn clone(&self) -> SymbolError
fn clone(&self) -> SymbolError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SymbolError
impl Debug for SymbolError
sourceimpl Display for SymbolError
impl Display for SymbolError
sourceimpl Error for SymbolError
impl Error for SymbolError
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<SymbolError> for FromStrError
impl From<SymbolError> for FromStrError
sourcefn from(err: SymbolError) -> FromStrError
fn from(err: SymbolError) -> FromStrError
Converts to this type from the input type.
sourceimpl PartialEq<SymbolError> for SymbolError
impl PartialEq<SymbolError> for SymbolError
sourcefn eq(&self, other: &SymbolError) -> bool
fn eq(&self, other: &SymbolError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for SymbolError
impl Eq for SymbolError
impl StructuralEq for SymbolError
impl StructuralPartialEq for SymbolError
Auto Trait Implementations
impl RefUnwindSafe for SymbolError
impl Send for SymbolError
impl Sync for SymbolError
impl Unpin for SymbolError
impl UnwindSafe for SymbolError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
sourcefn octets_into(self) -> Result<Target, ShortBuf>
fn octets_into(self) -> Result<Target, ShortBuf>
Performs the conversion.