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 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 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)>
Returns 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
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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