Enum glib::translate::GlibNoneOrInvalidError
source · [−]pub enum GlibNoneOrInvalidError<I: Error> {
Invalid(I),
None,
}
Expand description
Error type for TryFromGlib
when the Glib value can be None or invalid.
Variants
Invalid(I)
None
Implementations
Trait Implementations
sourceimpl<I: Debug + Error> Debug for GlibNoneOrInvalidError<I>
impl<I: Debug + Error> Debug for GlibNoneOrInvalidError<I>
sourceimpl<I: Error> Display for GlibNoneOrInvalidError<I>
impl<I: Error> Display for GlibNoneOrInvalidError<I>
sourceimpl<I: Error> Error for GlibNoneOrInvalidError<I>
impl<I: Error> Error for GlibNoneOrInvalidError<I>
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<I: Error> From<I> for GlibNoneOrInvalidError<I>
impl<I: Error> From<I> for GlibNoneOrInvalidError<I>
sourceimpl<I: PartialEq + Error> PartialEq<GlibNoneOrInvalidError<I>> for GlibNoneOrInvalidError<I>
impl<I: PartialEq + Error> PartialEq<GlibNoneOrInvalidError<I>> for GlibNoneOrInvalidError<I>
sourcefn eq(&self, other: &GlibNoneOrInvalidError<I>) -> bool
fn eq(&self, other: &GlibNoneOrInvalidError<I>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GlibNoneOrInvalidError<I>) -> bool
fn ne(&self, other: &GlibNoneOrInvalidError<I>) -> bool
This method tests for !=
.
impl<I: Eq + Error> Eq for GlibNoneOrInvalidError<I>
impl<I: Error> StructuralEq for GlibNoneOrInvalidError<I>
impl<I: Error> StructuralPartialEq for GlibNoneOrInvalidError<I>
Auto Trait Implementations
impl<I> RefUnwindSafe for GlibNoneOrInvalidError<I> where
I: RefUnwindSafe,
impl<I> Send for GlibNoneOrInvalidError<I> where
I: Send,
impl<I> Sync for GlibNoneOrInvalidError<I> where
I: Sync,
impl<I> Unpin for GlibNoneOrInvalidError<I> where
I: Unpin,
impl<I> UnwindSafe for GlibNoneOrInvalidError<I> where
I: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more