pub struct KnobDecl {
pub id: &'static str,
pub label: &'static str,
pub group: Option<&'static str>,
pub ctor_position: Option<usize>,
pub kind: KnobKind,
}Fields§
§id: &'static str§label: &'static str§group: Option<&'static str>§ctor_position: Option<usize>Some(i) when this knob is constructor argument i (Slider::new(v, …))
rather than a named builder property — a design tool emits it positionally.
kind: KnobKindTrait Implementations§
Auto Trait Implementations§
impl Freeze for KnobDecl
impl RefUnwindSafe for KnobDecl
impl Send for KnobDecl
impl Sync for KnobDecl
impl Unpin for KnobDecl
impl UnsafeUnpin for KnobDecl
impl UnwindSafe for KnobDecl
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