pub enum ScalarFieldRenderError {
RendererMismatch,
InvalidValueRange {
minimum: f32,
maximum: f32,
},
InvalidBackground,
Frame(RendererFrameError),
}Expand description
Failure while rendering a scalar texture as a heatmap.
Variants§
RendererMismatch
The texture belongs to another renderer and GPU device.
InvalidValueRange
The scalar range was non-finite or did not have positive extent.
Fields
InvalidBackground
The clear color is not normalized linear RGBA.
Frame(RendererFrameError)
Surface acquisition or presentation failed.
Trait Implementations§
Source§impl Clone for ScalarFieldRenderError
impl Clone for ScalarFieldRenderError
Source§fn clone(&self) -> ScalarFieldRenderError
fn clone(&self) -> ScalarFieldRenderError
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 ScalarFieldRenderError
Source§impl Debug for ScalarFieldRenderError
impl Debug for ScalarFieldRenderError
Source§impl Display for ScalarFieldRenderError
impl Display for ScalarFieldRenderError
Source§impl Error for ScalarFieldRenderError
impl Error for ScalarFieldRenderError
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 ScalarFieldRenderError
impl PartialEq for ScalarFieldRenderError
impl StructuralPartialEq for ScalarFieldRenderError
Auto Trait Implementations§
impl Freeze for ScalarFieldRenderError
impl RefUnwindSafe for ScalarFieldRenderError
impl Send for ScalarFieldRenderError
impl Sync for ScalarFieldRenderError
impl Unpin for ScalarFieldRenderError
impl UnsafeUnpin for ScalarFieldRenderError
impl UnwindSafe for ScalarFieldRenderError
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