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 ==
.