pub struct StrError(/* private fields */);
Expand description
A simple scanner error that just wraps a static str.
Trait Implementations§
source§impl Error for StrError
impl Error for StrError
1.30.0 · source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl ScannerError for StrError
impl ScannerError for StrError
source§fn end_of_entry() -> Self
fn end_of_entry() -> Self
Creates an error when more tokens were expected in the entry.
source§fn trailing_tokens() -> Self
fn trailing_tokens() -> Self
Creates an error when there are trailing tokens.
Auto Trait Implementations§
impl Freeze for StrError
impl RefUnwindSafe for StrError
impl Send for StrError
impl Sync for StrError
impl Unpin for StrError
impl UnwindSafe for StrError
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
source§impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
impl<Source, Target> OctetsInto<Target> for Sourcewhere
Target: OctetsFrom<Source>,
type Error = <Target as OctetsFrom<Source>>::Error
source§fn try_octets_into(
self,
) -> Result<Target, <Source as OctetsInto<Target>>::Error>
fn try_octets_into( self, ) -> Result<Target, <Source as OctetsInto<Target>>::Error>
Performs the conversion.
source§fn octets_into(self) -> Target
fn octets_into(self) -> Target
Performs an infallible conversion.