Enum allsorts::error::ReadWriteError
source · pub enum ReadWriteError {
Read(ParseError),
Write(WriteError),
}
Expand description
Enum that can hold read (ParseError
) and write errors
Variants§
Read(ParseError)
Write(WriteError)
Trait Implementations§
source§impl Clone for ReadWriteError
impl Clone for ReadWriteError
source§fn clone(&self) -> ReadWriteError
fn clone(&self) -> ReadWriteError
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 Debug for ReadWriteError
impl Debug for ReadWriteError
source§impl Display for ReadWriteError
impl Display for ReadWriteError
source§impl Error for ReadWriteError
impl Error for ReadWriteError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<ParseError> for ReadWriteError
impl From<ParseError> for ReadWriteError
source§fn from(error: ParseError) -> Self
fn from(error: ParseError) -> Self
Converts to this type from the input type.
source§impl From<ReadWriteError> for SubsetError
impl From<ReadWriteError> for SubsetError
source§fn from(err: ReadWriteError) -> SubsetError
fn from(err: ReadWriteError) -> SubsetError
Converts to this type from the input type.
source§impl From<ReadWriteError> for VariationError
impl From<ReadWriteError> for VariationError
source§fn from(err: ReadWriteError) -> VariationError
fn from(err: ReadWriteError) -> VariationError
Converts to this type from the input type.
source§impl From<WriteError> for ReadWriteError
impl From<WriteError> for ReadWriteError
source§fn from(error: WriteError) -> Self
fn from(error: WriteError) -> Self
Converts to this type from the input type.
source§impl PartialEq for ReadWriteError
impl PartialEq for ReadWriteError
source§fn eq(&self, other: &ReadWriteError) -> bool
fn eq(&self, other: &ReadWriteError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ReadWriteError
impl StructuralPartialEq for ReadWriteError
Auto Trait Implementations§
impl Freeze for ReadWriteError
impl RefUnwindSafe for ReadWriteError
impl Send for ReadWriteError
impl Sync for ReadWriteError
impl Unpin for ReadWriteError
impl UnwindSafe for ReadWriteError
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> 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