Skip to main content

FieldKind

Enum FieldKind 

Source
#[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§

Source§

impl Clone for FieldKind

Source§

fn clone(&self) -> FieldKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for FieldKind

Source§

impl Debug for FieldKind

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Eq for FieldKind

Source§

impl Hash for FieldKind

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for FieldKind

Source§

fn eq(&self, other: &FieldKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for FieldKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.