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§
Implementations§
Trait Implementations§
source§impl<I: Error> Display for GlibNoneOrInvalidError<I>
impl<I: Error> Display for GlibNoneOrInvalidError<I>
source§impl<I: Error> Error for GlibNoneOrInvalidError<I>
impl<I: Error> Error for GlibNoneOrInvalidError<I>
1.30.0 · 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<I: Error> From<I> for GlibNoneOrInvalidError<I>
impl<I: Error> From<I> for GlibNoneOrInvalidError<I>
source§impl<I: PartialEq + Error> PartialEq<GlibNoneOrInvalidError<I>> for GlibNoneOrInvalidError<I>
impl<I: PartialEq + Error> PartialEq<GlibNoneOrInvalidError<I>> for GlibNoneOrInvalidError<I>
source§fn 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 ==
.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§
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