Enum bo::validation::Validation [−][src]
Variants
Implementations
impl<E: Clone + Semigroup, A: Clone> Validation<E, A>
[src]
pub fn map<B, F>(&self, f: F) -> Validation<E, B> where
F: FnOnce(A) -> B,
[src]
F: FnOnce(A) -> B,
pub fn get_or_else(self, fallback: A) -> A
[src]
pub fn unwrap(self) -> A
[src]
pub fn is_success(&self) -> bool
[src]
pub fn is_failure(&self) -> bool
[src]
pub fn get_err(self) -> E
[src]
Trait Implementations
impl<E: Clone, A: Clone> Clone for Validation<E, A>
[src]
fn clone(&self) -> Validation<E, A>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<E: Debug, A: Debug> Debug for Validation<E, A>
[src]
Auto Trait Implementations
impl<E, A> RefUnwindSafe for Validation<E, A> where
A: RefUnwindSafe,
E: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
impl<E, A> Send for Validation<E, A> where
A: Send,
E: Send,
A: Send,
E: Send,
impl<E, A> Sync for Validation<E, A> where
A: Sync,
E: Sync,
A: Sync,
E: Sync,
impl<E, A> Unpin for Validation<E, A> where
A: Unpin,
E: Unpin,
A: Unpin,
E: Unpin,
impl<E, A> UnwindSafe for Validation<E, A> where
A: UnwindSafe,
E: UnwindSafe,
A: UnwindSafe,
E: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,