pub struct RangeViolation {
pub path: String,
pub value: f64,
pub min: Option<f64>,
pub max: Option<f64>,
}Expand description
A range-violation error for a single theme property.
Produced during validation when a resolved numeric property falls outside its allowed range.
Fields§
§path: StringDot-separated path of the property (e.g. "button.min_width").
value: f64The actual value found.
min: Option<f64>Lower bound (inclusive), or None for open-ended.
max: Option<f64>Upper bound (inclusive), or None for open-ended.
Trait Implementations§
Source§impl Clone for RangeViolation
impl Clone for RangeViolation
Source§impl Debug for RangeViolation
impl Debug for RangeViolation
Auto Trait Implementations§
impl Freeze for RangeViolation
impl RefUnwindSafe for RangeViolation
impl Send for RangeViolation
impl Sync for RangeViolation
impl Unpin for RangeViolation
impl UnsafeUnpin for RangeViolation
impl UnwindSafe for RangeViolation
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