pub struct Value {
pub default: Number,
pub range: Option<(Number, Number)>,
}
Expand description
A value.
Fields§
§default: Number
The default value.
range: Option<(Number, Number)>
The value range.
Implementations§
source§impl Value
impl Value
sourcepub fn from_weight_class(value: u16) -> Self
pub fn from_weight_class(value: u16) -> Self
Create an instance from a weight class.
sourcepub fn from_width_class(value: u16) -> Self
pub fn from_width_class(value: u16) -> Self
Create an instance from a width class.
sourcepub fn from_italic_flag(value: bool) -> Self
pub fn from_italic_flag(value: bool) -> Self
Create an instance from a flag for italic.
Trait Implementations§
source§impl PartialEq<Value> for Value
impl PartialEq<Value> for Value
impl Copy for Value
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnwindSafe for Value
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