[][src]Struct soft_ascii_string::error::FromSourceError

pub struct FromSourceError<S: Debug> { /* fields omitted */ }

Error returned if creating a SoftAsciiStr/SoftAsciiString failed

Methods

impl<S> FromSourceError<S> where
    S: Debug
[src]

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]

impl<S: Debug> Debug for FromSourceError<S>[src]

impl<S> Display for FromSourceError<S> where
    S: Debug
[src]

impl<S: Eq + Debug> Eq for FromSourceError<S>[src]

impl<S> Error for FromSourceError<S> where
    S: Debug
[src]

impl<S: Hash + Debug> Hash for FromSourceError<S>[src]

impl<S: PartialEq + Debug> PartialEq<FromSourceError<S>> for FromSourceError<S>[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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.