Enum malachite_base::unions::UnionFromStrError
source · pub enum UnionFromStrError<E> {
Generic(String),
Specific(E),
}
Expand description
This is the error type for the unions’ FromStr
implementations.
Variants§
Generic(String)
For when the union’s variant can’t be determined.
Specific(E)
For when the union’s variant can be determined but the wrapped value can’t be parsed.
Trait Implementations§
source§impl<E: Clone> Clone for UnionFromStrError<E>
impl<E: Clone> Clone for UnionFromStrError<E>
source§fn clone(&self) -> UnionFromStrError<E>
fn clone(&self) -> UnionFromStrError<E>
Returns a copy 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<E: Debug> Debug for UnionFromStrError<E>
impl<E: Debug> Debug for UnionFromStrError<E>
source§impl<E: Hash> Hash for UnionFromStrError<E>
impl<E: Hash> Hash for UnionFromStrError<E>
source§impl<E: PartialEq> PartialEq for UnionFromStrError<E>
impl<E: PartialEq> PartialEq for UnionFromStrError<E>
impl<E: Eq> Eq for UnionFromStrError<E>
impl<E> StructuralPartialEq for UnionFromStrError<E>
Auto Trait Implementations§
impl<E> Freeze for UnionFromStrError<E>where
E: Freeze,
impl<E> RefUnwindSafe for UnionFromStrError<E>where
E: RefUnwindSafe,
impl<E> Send for UnionFromStrError<E>where
E: Send,
impl<E> Sync for UnionFromStrError<E>where
E: Sync,
impl<E> Unpin for UnionFromStrError<E>where
E: Unpin,
impl<E> UnwindSafe for UnionFromStrError<E>where
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more