Enum constriction::stream::chain::ChangePrecisionError
source · pub enum ChangePrecisionError<Word, RemaindersBackend>{
Increase(CoderError<Infallible, BackendError<Infallible, RemaindersBackend::WriteError>>),
Decrease(CoderError<EncoderFrontendError, BackendError<Infallible, RemaindersBackend::ReadError>>),
}
Variants§
Increase(CoderError<Infallible, BackendError<Infallible, RemaindersBackend::WriteError>>)
Decrease(CoderError<EncoderFrontendError, BackendError<Infallible, RemaindersBackend::ReadError>>)
Trait Implementations§
source§impl<Word: Debug, RemaindersBackend> Debug for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack> + Debug,
RemaindersBackend::WriteError: Debug,
RemaindersBackend::ReadError: Debug,
impl<Word: Debug, RemaindersBackend> Debug for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack> + Debug,
RemaindersBackend::WriteError: Debug,
RemaindersBackend::ReadError: Debug,
source§impl<Word, RemaindersBackend> Display for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack>,
RemaindersBackend::WriteError: Display,
RemaindersBackend::ReadError: Display,
impl<Word, RemaindersBackend> Display for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack>,
RemaindersBackend::WriteError: Display,
RemaindersBackend::ReadError: Display,
source§impl<Word, RemaindersBackend> Error for ChangePrecisionError<Word, RemaindersBackend>where
Self: Debug,
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack>,
RemaindersBackend::WriteError: Error + 'static,
RemaindersBackend::ReadError: Error + 'static,
impl<Word, RemaindersBackend> Error for ChangePrecisionError<Word, RemaindersBackend>where
Self: Debug,
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack>,
RemaindersBackend::WriteError: Error + 'static,
RemaindersBackend::ReadError: Error + 'static,
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<Word: PartialEq, RemaindersBackend> PartialEq for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack> + PartialEq,
RemaindersBackend::WriteError: PartialEq,
RemaindersBackend::ReadError: PartialEq,
impl<Word: PartialEq, RemaindersBackend> PartialEq for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack> + PartialEq,
RemaindersBackend::WriteError: PartialEq,
RemaindersBackend::ReadError: PartialEq,
source§fn eq(&self, other: &ChangePrecisionError<Word, RemaindersBackend>) -> bool
fn eq(&self, other: &ChangePrecisionError<Word, RemaindersBackend>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<Word: Eq, RemaindersBackend> Eq for ChangePrecisionError<Word, RemaindersBackend>where
RemaindersBackend: WriteWords<Word> + ReadWords<Word, Stack> + Eq,
RemaindersBackend::WriteError: Eq,
RemaindersBackend::ReadError: Eq,
impl<Word, RemaindersBackend> StructuralEq for ChangePrecisionError<Word, RemaindersBackend>
impl<Word, RemaindersBackend> StructuralPartialEq for ChangePrecisionError<Word, RemaindersBackend>
Auto Trait Implementations§
impl<Word, RemaindersBackend> RefUnwindSafe for ChangePrecisionError<Word, RemaindersBackend>where
<RemaindersBackend as ReadWords<Word, Stack>>::ReadError: RefUnwindSafe,
<RemaindersBackend as WriteWords<Word>>::WriteError: RefUnwindSafe,
impl<Word, RemaindersBackend> Send for ChangePrecisionError<Word, RemaindersBackend>where
<RemaindersBackend as ReadWords<Word, Stack>>::ReadError: Send,
<RemaindersBackend as WriteWords<Word>>::WriteError: Send,
impl<Word, RemaindersBackend> Sync for ChangePrecisionError<Word, RemaindersBackend>where
<RemaindersBackend as ReadWords<Word, Stack>>::ReadError: Sync,
<RemaindersBackend as WriteWords<Word>>::WriteError: Sync,
impl<Word, RemaindersBackend> Unpin for ChangePrecisionError<Word, RemaindersBackend>where
<RemaindersBackend as ReadWords<Word, Stack>>::ReadError: Unpin,
<RemaindersBackend as WriteWords<Word>>::WriteError: Unpin,
impl<Word, RemaindersBackend> UnwindSafe for ChangePrecisionError<Word, RemaindersBackend>where
<RemaindersBackend as ReadWords<Word, Stack>>::ReadError: UnwindSafe,
<RemaindersBackend as WriteWords<Word>>::WriteError: 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