pub enum BezierError {
InvalidControlPoint {
x1: f32,
y1: f32,
x2: f32,
y2: f32,
},
ParameterCalculationError(f32),
}Expand description
Custom errors for handling Bézier curve computations.
Variants§
InvalidControlPoint
Error indicating that control points are out of the valid range [0, 1].
ParameterCalculationError(f32)
Error for failing to calculate the parameter t for a given x-coordinate.
Trait Implementations§
Source§impl Debug for BezierError
impl Debug for BezierError
Source§impl Display for BezierError
impl Display for BezierError
Source§impl Error for BezierError
impl Error for BezierError
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()
Auto Trait Implementations§
impl Freeze for BezierError
impl RefUnwindSafe for BezierError
impl Send for BezierError
impl Sync for BezierError
impl Unpin for BezierError
impl UnwindSafe for BezierError
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