pub struct EnumInfo {
pub enum_path: &'static str,
pub variants: Vec<&'static str>,
pub default: usize,
}Expand description
Resolved dropdown metadata for an enum-typed knob — the Rust enum path, its
variant idents (in declaration order), and the default’s index. Lets a
design tool render a dropdown and emit enum_path::variant.
Fields§
§enum_path: &'static str§variants: Vec<&'static str>§default: usizeTrait Implementations§
impl Eq for EnumInfo
impl StructuralPartialEq for EnumInfo
Auto Trait Implementations§
impl Freeze for EnumInfo
impl RefUnwindSafe for EnumInfo
impl Send for EnumInfo
impl Sync for EnumInfo
impl Unpin for EnumInfo
impl UnsafeUnpin for EnumInfo
impl UnwindSafe for EnumInfo
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