pub enum DynamicConversionError {
NonlinearConversionInSceneState(DynamicColorSpace, DynamicColorSpace),
StateChangeInNonlinearSpace(DynamicColorSpace, DynamicState, DynamicState),
TonemapInDisplayState,
}Expand description
An error that occurred when performing a conversion on a DynamicColor
Variants§
NonlinearConversionInSceneState(DynamicColorSpace, DynamicColorSpace)
StateChangeInNonlinearSpace(DynamicColorSpace, DynamicState, DynamicState)
TonemapInDisplayState
Trait Implementations§
Source§impl Debug for DynamicConversionError
impl Debug for DynamicConversionError
Source§impl Display for DynamicConversionError
impl Display for DynamicConversionError
Source§impl Error for DynamicConversionError
Available on crate feature std only.
impl Error for DynamicConversionError
Available on crate feature
std only.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<DynamicConversionError> for ColorError
impl From<DynamicConversionError> for ColorError
Source§fn from(err: DynamicConversionError) -> Self
fn from(err: DynamicConversionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DynamicConversionError
impl RefUnwindSafe for DynamicConversionError
impl Send for DynamicConversionError
impl Sync for DynamicConversionError
impl Unpin for DynamicConversionError
impl UnsafeUnpin for DynamicConversionError
impl UnwindSafe for DynamicConversionError
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