[−][src]Struct soft_ascii_string::error::FromSourceError
Error returned if creating a SoftAsciiStr/SoftAsciiString failed
Methods
impl<S> FromSourceError<S> where
S: Debug,
[src]
S: Debug,
pub fn new(source: S) -> Self
[src]
creates a new FromSourceError
pub fn source(&self) -> &S
[src]
returns a reference to the source
the source is the input which was meant to be converted into a SoftAsciiStr/String
pub fn into_source(self) -> S
[src]
returns the source
the source is the input which was meant to be converted into a SoftAsciiStr/String
Trait Implementations
impl<S: Clone + Debug> Clone for FromSourceError<S>
[src]
fn clone(&self) -> FromSourceError<S>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<S: Debug> Debug for FromSourceError<S>
[src]
impl<S> Display for FromSourceError<S> where
S: Debug,
[src]
S: Debug,
impl<S: Eq + Debug> Eq for FromSourceError<S>
[src]
impl<S> Error for FromSourceError<S> where
S: Debug,
[src]
S: Debug,
fn description(&self) -> &str
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<S: Hash + Debug> Hash for FromSourceError<S>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<S: PartialEq + Debug> PartialEq<FromSourceError<S>> for FromSourceError<S>
[src]
fn eq(&self, other: &FromSourceError<S>) -> bool
[src]
fn ne(&self, other: &FromSourceError<S>) -> bool
[src]
impl<S: Debug> StructuralEq for FromSourceError<S>
[src]
impl<S: Debug> StructuralPartialEq for FromSourceError<S>
[src]
Auto Trait Implementations
impl<S> RefUnwindSafe for FromSourceError<S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<S> Send for FromSourceError<S> where
S: Send,
S: Send,
impl<S> Sync for FromSourceError<S> where
S: Sync,
S: Sync,
impl<S> Unpin for FromSourceError<S> where
S: Unpin,
S: Unpin,
impl<S> UnwindSafe for FromSourceError<S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,