pub struct ValueSetDesc {
pub name: &'static str,
pub flags: bool,
pub values: &'static [(&'static str, u32)],
}Expand description
Named values a field holds: the variants of a word_enum! or the bits of a flag set. Host
mirrors emit one NV_<NAME>_<VALUE> constant each, so foreign code never hand-copies them.
Fields§
§name: &'static strRust type / set name (AriaRole, TextDecoration).
flags: booltrue for a bit-flag set (values combine with |), false for enum variants (exactly
one value at a time). Hosts mirror flags as namespaced masks and variants as enums.
values: &'static [(&'static str, u32)](variant, value) pairs in declaration order.
Trait Implementations§
Source§impl Clone for ValueSetDesc
impl Clone for ValueSetDesc
Source§fn clone(&self) -> ValueSetDesc
fn clone(&self) -> ValueSetDesc
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ValueSetDesc
Source§impl Debug for ValueSetDesc
impl Debug for ValueSetDesc
impl Eq for ValueSetDesc
Source§impl PartialEq for ValueSetDesc
impl PartialEq for ValueSetDesc
impl StructuralPartialEq for ValueSetDesc
Auto Trait Implementations§
impl Forget for ValueSetDesc
impl Freeze for ValueSetDesc
impl Move for ValueSetDesc
impl RefUnwindSafe for ValueSetDesc
impl Send for ValueSetDesc
impl Sync for ValueSetDesc
impl Unpin for ValueSetDesc
impl UnsafeUnpin for ValueSetDesc
impl UnwindSafe for ValueSetDesc
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