Enum tcn75a::LimitError [−][src]
pub enum LimitError { BothOutOfRange, LowOutOfRange, HighOutOfRange, LowExceedsHigh, }
Expand description
Reasons a conversion from (I8F8, I8F8)
to Limits
may fail.
Due to its runtime guarantees, a Limits
struct can only be created by invoking try_from
on a (I8F8, I8F8)
tuple. LimitError
is the associated Error
type in the
TryFrom<(I8F8, I8F8)>
implementation on Limits
, and it contains all the reasons
a conversion from (I8F8, I8F8)
can fail.
Variants
Both the Hysteresis and Limit-Set values provided do not fit in a 9-bit signed integer.
The Hysteresis value provided does not fit in a 9-bit signed integer.
The Limit-Set value provided does not fit in a 9-bit signed integer.
The Hysteresis value is greater than or equal to the Limit-Set value provided.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for LimitError
impl Send for LimitError
impl Sync for LimitError
impl Unpin for LimitError
impl UnwindSafe for LimitError
Blanket Implementations
Mutably borrows from an owned value. Read more
Casts the value.
Performs the conversion.
Performs the conversion.
Casts the value.
type Output = T
type Output = T
Should always be Self
Casts the value.
Casts the value.
Casts the value.