Skip to main content

FactView

Struct FactView 

Source
pub struct FactView {
    pub name: &'static str,
    pub id: U64Split,
    pub per_node: bool,
    pub node_id: bool,
    pub f32x4: bool,
    pub u32_val: bool,
    pub u8_max: u8,
    pub stride: u32,
    pub doc: &'static str,
    pub bit: u32,
}
Expand description

One registered fact, as the templates see it.

Fields§

§name: &'static str

Snake-case name (top_layer_states).

§id: U64Split§per_node: bool

One element per node slot (else one scalar).

§node_id: bool

u32 NodeId elements.

§f32x4: bool

Four little-endian finite f32 elements ([x, y, w, h], 16 bytes).

§u32_val: bool

Little-endian u32 (4 bytes, all bit patterns valid).

§u8_max: u8§stride: u32§doc: &'static str§bit: u32

Bit of this fact in a resolver’s “seen” mask (its SceneFact::ALL position).

Implementations§

Source§

impl FactView

Source

pub fn camel(&self) -> String

Source

pub fn pascal(&self) -> String

Source

pub fn screaming(&self) -> String

Trait Implementations§

Source§

impl Debug for FactView

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl Forget for FactView

§

impl Freeze for FactView
where &'static str: Freeze,

§

impl Move for FactView

§

impl RefUnwindSafe for FactView

§

impl Send for FactView
where &'static str: Send,

§

impl Sync for FactView

§

impl Unpin for FactView
where &'static str: Unpin,

§

impl UnsafeUnpin for FactView
where &'static str: UnsafeUnpin,

§

impl UnwindSafe for FactView
where &'static str: UnwindSafe,

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> 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, 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.