pub type Fallible<T> = Result<T, Error>;
Expand description
The return type for IDL operations that can throw DOM exceptions.
Aliased Type§
enum Fallible<T> {
Ok(T),
Err(Error),
}
Variants§
Trait Implementations§
1.0.0 · source§impl<T, E> Ord for Result<T, E>where
T: Ord,
E: Ord,
impl<T, E> Ord for Result<T, E>where T: Ord, E: Ord,
1.21.0 · source§fn 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.0.0 · source§impl<T, E> PartialEq<Result<T, E>> for Result<T, E>where
T: PartialEq<T>,
E: PartialEq<E>,
impl<T, E> PartialEq<Result<T, E>> for Result<T, E>where T: PartialEq<T>, E: PartialEq<E>,
1.0.0 · source§impl<T, E> PartialOrd<Result<T, E>> for Result<T, E>where
T: PartialOrd<T>,
E: PartialOrd<E>,
impl<T, E> PartialOrd<Result<T, E>> for Result<T, E>where T: PartialOrd<T>, E: PartialOrd<E>,
1.0.0 · source§fn 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 more