Enum stm32h7xx_hal::crc::PolynomialError
source · pub enum PolynomialError {
EvenPoly,
TooLarge,
}
Available on crate feature
crc
only.Expand description
Errors generated when trying to create invalid polynomials.
Variants§
EvenPoly
Tried to create an even polynomial. The hardware CRC unit only supports odd polynomials.
TooLarge
Tried to create a 7-bit polynomial with an 8-bit number
(greater than 0x7F
).
Trait Implementations§
source§impl Clone for PolynomialError
impl Clone for PolynomialError
source§fn clone(&self) -> PolynomialError
fn clone(&self) -> PolynomialError
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 PolynomialError
impl Debug for PolynomialError
source§impl Display for PolynomialError
impl Display for PolynomialError
source§impl Format for PolynomialError
impl Format for PolynomialError
source§impl PartialEq for PolynomialError
impl PartialEq for PolynomialError
source§fn eq(&self, other: &PolynomialError) -> bool
fn eq(&self, other: &PolynomialError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for PolynomialError
impl Eq for PolynomialError
impl StructuralPartialEq for PolynomialError
Auto Trait Implementations§
impl Freeze for PolynomialError
impl RefUnwindSafe for PolynomialError
impl Send for PolynomialError
impl Sync for PolynomialError
impl Unpin for PolynomialError
impl UnwindSafe for PolynomialError
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