Enum glib::value::ValueTypeMismatchOrNoneError
source · [−]pub enum ValueTypeMismatchOrNoneError<E: Error> {
WrongValueType(E),
UnexpectedNone,
}
Variants
WrongValueType(E)
UnexpectedNone
Trait Implementations
sourceimpl<E: Clone + Error> Clone for ValueTypeMismatchOrNoneError<E>
impl<E: Clone + Error> Clone for ValueTypeMismatchOrNoneError<E>
sourcefn clone(&self) -> ValueTypeMismatchOrNoneError<E>
fn clone(&self) -> ValueTypeMismatchOrNoneError<E>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<E: Debug + Error> Debug for ValueTypeMismatchOrNoneError<E>
impl<E: Debug + Error> Debug for ValueTypeMismatchOrNoneError<E>
sourceimpl<E: Error> Display for ValueTypeMismatchOrNoneError<E>
impl<E: Error> Display for ValueTypeMismatchOrNoneError<E>
sourceimpl<E: Error> Error for ValueTypeMismatchOrNoneError<E>
impl<E: Error> Error for ValueTypeMismatchOrNoneError<E>
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
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<E: Error> From<E> for ValueTypeMismatchOrNoneError<E>
impl<E: Error> From<E> for ValueTypeMismatchOrNoneError<E>
sourceimpl<E: PartialEq + Error> PartialEq<ValueTypeMismatchOrNoneError<E>> for ValueTypeMismatchOrNoneError<E>
impl<E: PartialEq + Error> PartialEq<ValueTypeMismatchOrNoneError<E>> for ValueTypeMismatchOrNoneError<E>
sourcefn eq(&self, other: &ValueTypeMismatchOrNoneError<E>) -> bool
fn eq(&self, other: &ValueTypeMismatchOrNoneError<E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl<E: Eq + Error> Eq for ValueTypeMismatchOrNoneError<E>
impl<E: Error> StructuralEq for ValueTypeMismatchOrNoneError<E>
impl<E: Error> StructuralPartialEq for ValueTypeMismatchOrNoneError<E>
Auto Trait Implementations
impl<E> RefUnwindSafe for ValueTypeMismatchOrNoneError<E> where
E: RefUnwindSafe,
impl<E> Send for ValueTypeMismatchOrNoneError<E> where
E: Send,
impl<E> Sync for ValueTypeMismatchOrNoneError<E> where
E: Sync,
impl<E> Unpin for ValueTypeMismatchOrNoneError<E> where
E: Unpin,
impl<E> UnwindSafe for ValueTypeMismatchOrNoneError<E> where
E: 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