Enum glib::GStringFromError
source · pub enum GStringFromError<T> {
NoTrailingNul(GStringNoTrailingNulError<T>),
InteriorNul(GStringInteriorNulError<T>),
InvalidUtf8(GStringUtf8Error<T>),
Unspecified(T),
}
Expand description
Error type holding all possible failures when creating a GString
.
Variants§
NoTrailingNul(GStringNoTrailingNulError<T>)
InteriorNul(GStringInteriorNulError<T>)
InvalidUtf8(GStringUtf8Error<T>)
Unspecified(T)
Implementations§
source§impl<T> GStringFromError<T>
impl<T> GStringFromError<T>
pub fn into_inner(self) -> T
Trait Implementations§
source§impl<T: Debug> Debug for GStringFromError<T>
impl<T: Debug> Debug for GStringFromError<T>
source§impl<T> Display for GStringFromError<T>where
GStringNoTrailingNulError<T>: Display,
GStringInteriorNulError<T>: Display,
GStringUtf8Error<T>: Display,
impl<T> Display for GStringFromError<T>where GStringNoTrailingNulError<T>: Display, GStringInteriorNulError<T>: Display, GStringUtf8Error<T>: Display,
source§impl<T> Error for GStringFromError<T>where
GStringNoTrailingNulError<T>: Error,
GStringInteriorNulError<T>: Error,
GStringUtf8Error<T>: Error,
Self: Debug + Display,
impl<T> Error for GStringFromError<T>where GStringNoTrailingNulError<T>: Error, GStringInteriorNulError<T>: Error, GStringUtf8Error<T>: Error, Self: Debug + Display,
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 From<FromUtf8Error> for GStringFromError<Vec<u8>>
impl From<FromUtf8Error> for GStringFromError<Vec<u8>>
source§fn from(e: FromUtf8Error) -> Self
fn from(e: FromUtf8Error) -> Self
Converts to this type from the input type.
source§impl<T> From<GStringInteriorNulError<T>> for GStringFromError<T>
impl<T> From<GStringInteriorNulError<T>> for GStringFromError<T>
source§fn from(source: GStringInteriorNulError<T>) -> Self
fn from(source: GStringInteriorNulError<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<GStringNoTrailingNulError<T>> for GStringFromError<T>
impl<T> From<GStringNoTrailingNulError<T>> for GStringFromError<T>
source§fn from(source: GStringNoTrailingNulError<T>) -> Self
fn from(source: GStringNoTrailingNulError<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<GStringUtf8Error<T>> for GStringFromError<T>
impl<T> From<GStringUtf8Error<T>> for GStringFromError<T>
source§fn from(source: GStringUtf8Error<T>) -> Self
fn from(source: GStringUtf8Error<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<T> RefUnwindSafe for GStringFromError<T>where T: RefUnwindSafe,
impl<T> Send for GStringFromError<T>where T: Send,
impl<T> Sync for GStringFromError<T>where T: Sync,
impl<T> Unpin for GStringFromError<T>where T: Unpin,
impl<T> UnwindSafe for GStringFromError<T>where T: 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