Struct soft_ascii_string::error::FromSourceError [−][src]
pub struct FromSourceError<S: Debug> { /* fields omitted */ }
Error returned if creating a SoftAsciiStr/SoftAsciiString failed
Methods
impl<S> FromSourceError<S> where
S: Debug, [src]
impl<S> FromSourceError<S> where
S: Debug, pub fn new(source: S) -> Self[src]
pub fn new(source: S) -> Selfcreates a new FromSourceError
pub fn source(&self) -> &S[src]
pub fn source(&self) -> &Sreturns 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]
pub fn into_source(self) -> Sreturns the source
the source is the input which was meant to be converted into a SoftAsciiStr/String
Trait Implementations
impl<S: Debug + Debug> Debug for FromSourceError<S>[src]
impl<S: Debug + Debug> Debug for FromSourceError<S>fn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl<S: PartialEq + Debug> PartialEq for FromSourceError<S>[src]
impl<S: PartialEq + Debug> PartialEq for FromSourceError<S>fn eq(&self, other: &FromSourceError<S>) -> bool[src]
fn eq(&self, other: &FromSourceError<S>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &FromSourceError<S>) -> bool[src]
fn ne(&self, other: &FromSourceError<S>) -> boolThis method tests for !=.
impl<S: Eq + Debug> Eq for FromSourceError<S>[src]
impl<S: Eq + Debug> Eq for FromSourceError<S>impl<S: Clone + Debug> Clone for FromSourceError<S>[src]
impl<S: Clone + Debug> Clone for FromSourceError<S>fn clone(&self) -> FromSourceError<S>[src]
fn clone(&self) -> FromSourceError<S>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl<S: Hash + Debug> Hash for FromSourceError<S>[src]
impl<S: Hash + Debug> Hash for FromSourceError<S>fn hash<__HS: Hasher>(&self, state: &mut __HS)[src]
fn hash<__HS: Hasher>(&self, state: &mut __HS)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl<S> Error for FromSourceError<S> where
S: Debug, [src]
impl<S> Error for FromSourceError<S> where
S: Debug, fn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>The lower-level cause of this error, if any. Read more
impl<S> Display for FromSourceError<S> where
S: Debug, [src]
impl<S> Display for FromSourceError<S> where
S: Debug, Auto Trait Implementations
impl<S> Send for FromSourceError<S> where
S: Send,
impl<S> Send for FromSourceError<S> where
S: Send, impl<S> Sync for FromSourceError<S> where
S: Sync,
impl<S> Sync for FromSourceError<S> where
S: Sync,