#[non_exhaustive]pub enum ScreenVisualError {
MissingPaint,
InvalidRotation {
value: f32,
},
InvalidLine,
InvalidRadius {
value: f32,
},
InvalidStrokeWidth {
value: f32,
},
InvalidPosition {
value: LogicalScreenPosition,
},
InvalidSize {
value: LogicalScreenVector,
},
InvalidBounds {
position: LogicalScreenPosition,
size: LogicalScreenVector,
},
InvalidColor {
value: Color,
},
InvalidDrawOrderDepth {
value: f32,
},
}Expand description
Invalid value rejected by a screen visual’s constructor or atomic setter.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
MissingPaint
Removing the stroke would leave an outline-only shape with no paint.
InvalidRotation
Image rotation was non-finite.
InvalidLine
Line endpoints coincide or their difference overflows.
InvalidRadius
A radius was negative or non-finite (circles additionally reject zero).
InvalidStrokeWidth
A stroke width was non-finite or not positive.
InvalidPosition
A logical screen position contained a non-finite coordinate.
Fields
value: LogicalScreenPositionRejected logical top-left position.
InvalidSize
A logical width or height was non-finite or not strictly positive.
Fields
value: LogicalScreenVectorRejected logical-pixel size.
InvalidBounds
Adding size overflowed or failed to advance either f32 coordinate.
Fields
position: LogicalScreenPositionLogical top-left position of the rejected geometry.
size: LogicalScreenVectorLogical-pixel size of the rejected geometry.
InvalidColor
A color channel was non-finite or outside 0.0..=1.0.
InvalidDrawOrderDepth
Draw-order depth was non-finite.
Trait Implementations§
Source§impl Clone for ScreenVisualError
impl Clone for ScreenVisualError
impl Copy for ScreenVisualError
Source§impl Debug for ScreenVisualError
impl Debug for ScreenVisualError
Source§impl Display for ScreenVisualError
impl Display for ScreenVisualError
Source§impl Error for ScreenVisualError
impl Error for ScreenVisualError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<ScreenVisualError> for ImageVisualError
impl From<ScreenVisualError> for ImageVisualError
Source§fn from(source: ScreenVisualError) -> Self
fn from(source: ScreenVisualError) -> Self
Source§impl From<ScreenVisualError> for TextError
impl From<ScreenVisualError> for TextError
Source§fn from(error: ScreenVisualError) -> Self
fn from(error: ScreenVisualError) -> Self
Source§impl PartialEq for ScreenVisualError
impl PartialEq for ScreenVisualError
impl StructuralPartialEq for ScreenVisualError
Auto Trait Implementations§
impl Freeze for ScreenVisualError
impl RefUnwindSafe for ScreenVisualError
impl Send for ScreenVisualError
impl Sync for ScreenVisualError
impl Unpin for ScreenVisualError
impl UnsafeUnpin for ScreenVisualError
impl UnwindSafe for ScreenVisualError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ConditionalSend for Twhere
T: Send,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.