[][src]Struct blend::runtime::FieldTemplate

pub struct FieldTemplate {
    pub info: FieldInfo,
    pub type_index: usize,
    pub type_name: String,
    pub data_start: usize,
    pub data_len: usize,
    pub is_primitive: bool,
}

Represents a field inside a struct. The data FieldTemplate keeps is used to interpret the raw bytes of the block.

Fields

info: FieldInfotype_index: usize

The index of this field's type inside the Dna::types array.

type_name: String

The type name of this field. Used for pretty printing and some sanity checks.

data_start: usize

The index of the data in the Instance owned by this field.

data_len: usize

The length in bytes of the data in the Instance owned by this field.

is_primitive: bool

A field can represent a primitive or a struct.

Trait Implementations

impl Clone for FieldTemplate[src]

impl Debug for FieldTemplate[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]