pub struct FromSourceError<S: Debug> { /* private fields */ }
Expand description
Error returned if creating a SoftAsciiStr/SoftAsciiString failed
Implementations§
Source§impl<S> FromSourceError<S>where
S: Debug,
impl<S> FromSourceError<S>where
S: Debug,
Sourcepub fn source(&self) -> &S
pub fn source(&self) -> &S
returns a reference to the source
the source is the input which was meant to be converted into a SoftAsciiStr/String
Sourcepub fn into_source(self) -> S
pub fn into_source(self) -> S
returns the source
the source is the input which was meant to be converted into a SoftAsciiStr/String
Trait Implementations§
Source§impl<S: Clone + Debug> Clone for FromSourceError<S>
impl<S: Clone + Debug> Clone for FromSourceError<S>
Source§fn clone(&self) -> FromSourceError<S>
fn clone(&self) -> FromSourceError<S>
Returns a copy 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<S> Display for FromSourceError<S>where
S: Debug,
impl<S> Display for FromSourceError<S>where
S: Debug,
Source§impl<S> Error for FromSourceError<S>where
S: Debug,
impl<S> Error for FromSourceError<S>where
S: Debug,
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
impl<S: Eq + Debug> Eq for FromSourceError<S>
impl<S: Debug> StructuralPartialEq for FromSourceError<S>
Auto Trait Implementations§
impl<S> Freeze for FromSourceError<S>where
S: Freeze,
impl<S> RefUnwindSafe for FromSourceError<S>where
S: RefUnwindSafe,
impl<S> Send for FromSourceError<S>where
S: Send,
impl<S> Sync for FromSourceError<S>where
S: Sync,
impl<S> Unpin for FromSourceError<S>where
S: Unpin,
impl<S> UnwindSafe for FromSourceError<S>where
S: UnwindSafe,
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