pub enum ReaderResult<T, E> {
Some(T),
Err(E),
Empty,
None,
}Variants§
Trait Implementations§
Source§impl<T: Clone, E: Clone> Clone for ReaderResult<T, E>
impl<T: Clone, E: Clone> Clone for ReaderResult<T, E>
Source§fn clone(&self) -> ReaderResult<T, E>
fn clone(&self) -> ReaderResult<T, E>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'de, T, E> Deserialize<'de> for ReaderResult<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
impl<'de, T, E> Deserialize<'de> for ReaderResult<T, E>where
T: Deserialize<'de>,
E: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T, E> From<Option<T>> for ReaderResult<T, E>
impl<T, E> From<Option<T>> for ReaderResult<T, E>
Source§impl<T, E> From<Result<T, E>> for ReaderResult<T, E>
impl<T, E> From<Result<T, E>> for ReaderResult<T, E>
Source§impl<T: Ord, E: Ord> Ord for ReaderResult<T, E>
impl<T: Ord, E: Ord> Ord for ReaderResult<T, E>
Source§fn cmp(&self, other: &ReaderResult<T, E>) -> Ordering
fn cmp(&self, other: &ReaderResult<T, E>) -> Ordering
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
Source§impl<T: PartialOrd, E: PartialOrd> PartialOrd for ReaderResult<T, E>
impl<T: PartialOrd, E: PartialOrd> PartialOrd for ReaderResult<T, E>
Source§impl<T, E> Serialize for ReaderResult<T, E>
impl<T, E> Serialize for ReaderResult<T, E>
impl<T: Eq, E: Eq> Eq for ReaderResult<T, E>
impl<T, E> Send for ReaderResult<T, E>
impl<T, E> StructuralPartialEq for ReaderResult<T, E>
impl<T, E> Sync for ReaderResult<T, E>
Auto Trait Implementations§
impl<T, E> Freeze for ReaderResult<T, E>
impl<T, E> RefUnwindSafe for ReaderResult<T, E>where
T: RefUnwindSafe,
E: RefUnwindSafe,
impl<T, E> Unpin for ReaderResult<T, E>
impl<T, E> UnwindSafe for ReaderResult<T, E>where
T: UnwindSafe,
E: 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