#[non_exhaustive]pub enum CurveError {
TooFewKeys(usize),
InvalidKeyOrder {
index: usize,
t: f32,
},
FirstKeyNotZero(f32),
LastKeyNotOne(f32),
NonFiniteValue {
index: usize,
t: f32,
v: f32,
},
SampledValueInvalid {
t: f32,
v: f32,
},
InvalidSampleCount {
got: u32,
},
InvalidBezier {
c1x: f32,
c2x: f32,
},
}Expand description
Errors raised while constructing or sampling curves.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
TooFewKeys(usize)
InvalidKeyOrder
FirstKeyNotZero(f32)
LastKeyNotOne(f32)
NonFiniteValue
SampledValueInvalid
InvalidSampleCount
InvalidBezier
Trait Implementations§
Source§impl Debug for CurveError
impl Debug for CurveError
Source§impl Display for CurveError
impl Display for CurveError
Source§impl Error for CurveError
impl Error for CurveError
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<CurveError> for DesktopError
impl From<CurveError> for DesktopError
Source§fn from(source: CurveError) -> Self
fn from(source: CurveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CurveError
impl PartialEq for CurveError
impl StructuralPartialEq for CurveError
Auto Trait Implementations§
impl Freeze for CurveError
impl RefUnwindSafe for CurveError
impl Send for CurveError
impl Sync for CurveError
impl Unpin for CurveError
impl UnsafeUnpin for CurveError
impl UnwindSafe for CurveError
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