pub enum KnobValue {
}Expand description
Concrete value for a knob, used by PreviewVariant::Knobs to override
the spec’s defaults for a specific named variant.
Variants§
Bool(bool)
OptBool(Option<bool>)
I32(i32)
OptI32(Option<i32>)
F32(f32)
OptF32(Option<f32>)
Text(String)
OptText(Option<String>)
Choice(usize)
Enum(usize)
TextRole(TextRole)
SurfaceRole(SurfaceRole)
BorderRole(BorderRole)
TextStyle(TextStyleRole)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KnobValue
impl RefUnwindSafe for KnobValue
impl Send for KnobValue
impl Sync for KnobValue
impl Unpin for KnobValue
impl UnsafeUnpin for KnobValue
impl UnwindSafe for KnobValue
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