#[repr(u8)]pub enum FieldKind {
Show 14 variants
U32 = 0,
I32 = 1,
F32 = 2,
Bool = 3,
Enum = 4,
Color = 5,
Length = 6,
Str = 7,
Resource = 8,
Node = 9,
U64 = 10,
I64 = 11,
F64 = 12,
GridLine = 13,
}Expand description
How a field’s bits are interpreted (drives codegen getters and wire string/resource handling).
Variants§
U32 = 0
I32 = 1
F32 = 2
Bool = 3
Enum = 4
Small enum / integer packed in bits.
Color = 5
Packed RGBA8888 (r | g<<8 | b<<16 | a<<24).
Length = 6
Tagged length (Auto / points / percent) — see nativeview_store::Length.
Str = 7
Two words { offset, len } into the text slab.
Resource = 8
ResourceId into the resource store.
Node = 9
Node reference (NodeId raw value, 0 = none).
U64 = 10
Two-word unsigned 64-bit integer (lo, hi).
I64 = 11
Two-word signed 64-bit integer (lo, hi).
F64 = 12
Two-word 64-bit float (lo, hi).
GridLine = 13
Packed 16-bit CSS Grid line placement (Auto, Line(i16), Span(u16)).
Trait Implementations§
impl Copy for FieldKind
impl Eq for FieldKind
impl StructuralPartialEq for FieldKind
Auto Trait Implementations§
impl Forget for FieldKind
impl Freeze for FieldKind
impl Move for FieldKind
impl RefUnwindSafe for FieldKind
impl Send for FieldKind
impl Sync for FieldKind
impl Unpin for FieldKind
impl UnsafeUnpin for FieldKind
impl UnwindSafe for FieldKind
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