pub enum SceneError {
InvalidBackground,
NonFiniteGeometry(ScenePrimitive),
InvalidDimension(ScenePrimitive),
DegenerateGeometry(ScenePrimitive),
MissingStyle(ScenePrimitive),
InvalidFill(ScenePrimitive),
InvalidStroke(ScenePrimitive),
InvalidShadow(ScenePrimitive),
InvalidScreenClip,
NonFiniteDepth,
}Expand description
Reason a command or temporary scene state was rejected.
Variants§
InvalidBackground
Clear color is non-finite or outside normalized RGBA.
NonFiniteGeometry(ScenePrimitive)
Primitive coordinates contain NaN or infinity.
InvalidDimension(ScenePrimitive)
Radius, size, corner radius, or stroke width is outside its valid range.
DegenerateGeometry(ScenePrimitive)
Line or polyline has no drawable segment.
MissingStyle(ScenePrimitive)
Shape has no fill, stroke, or shadow.
InvalidFill(ScenePrimitive)
Fill color or gradient configuration is invalid.
InvalidStroke(ScenePrimitive)
Stroke width or color is invalid.
InvalidShadow(ScenePrimitive)
Shadow offset, spread, or color is invalid.
InvalidScreenClip
Active logical screen clip is non-finite or empty.
NonFiniteDepth
Pseudo-depth must be finite.
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
Source§fn clone(&self) -> SceneError
fn clone(&self) -> SceneError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SceneError
Source§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
impl Eq for SceneError
Source§impl Error for SceneError
impl Error for SceneError
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 PartialEq for SceneError
impl PartialEq for SceneError
impl StructuralPartialEq for SceneError
Auto Trait Implementations§
impl Freeze for SceneError
impl RefUnwindSafe for SceneError
impl Send for SceneError
impl Sync for SceneError
impl Unpin for SceneError
impl UnsafeUnpin for SceneError
impl UnwindSafe for SceneError
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.