Enum glib::ConvertError
source · #[non_exhaustive]
pub enum ConvertError {
NoConversion,
IllegalSequence,
Failed,
PartialInput,
BadUri,
NotAbsolutePath,
NoMemory,
EmbeddedNul,
// some variants omitted
}Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoConversion
IllegalSequence
Failed
PartialInput
BadUri
NotAbsolutePath
NoMemory
EmbeddedNul
Trait Implementations
sourceimpl Clone for ConvertError
impl Clone for ConvertError
sourcefn clone(&self) -> ConvertError
fn clone(&self) -> ConvertError
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 moresourceimpl Debug for ConvertError
impl Debug for ConvertError
sourceimpl Display for ConvertError
impl Display for ConvertError
sourceimpl ErrorDomain for ConvertError
impl ErrorDomain for ConvertError
sourceimpl Hash for ConvertError
impl Hash for ConvertError
sourceimpl Ord for ConvertError
impl Ord for ConvertError
sourcefn cmp(&self, other: &ConvertError) -> Ordering
fn cmp(&self, other: &ConvertError) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<ConvertError> for ConvertError
impl PartialEq<ConvertError> for ConvertError
sourcefn eq(&self, other: &ConvertError) -> bool
fn eq(&self, other: &ConvertError) -> bool
sourceimpl PartialOrd<ConvertError> for ConvertError
impl PartialOrd<ConvertError> for ConvertError
sourcefn partial_cmp(&self, other: &ConvertError) -> Option<Ordering>
fn partial_cmp(&self, other: &ConvertError) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for ConvertError
impl Eq for ConvertError
impl StructuralEq for ConvertError
impl StructuralPartialEq for ConvertError
Auto Trait Implementations
impl RefUnwindSafe for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnwindSafe for ConvertError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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