devela::data

Type Alias NoData

Source
pub type NoData = ();
Expand description

Represents data absence.

Trait Implementations§

Source§

impl DataType for NoData

Source§

type Value = ()

The DataValue type that pairs with this DataType.
Source§

fn data_value_default(&self) -> Option<Self::Value>

Returns some default value corresponding to the current type. Read more
Source§

fn data_value_is_copy(&self) -> bool

Returns true if the data represented by this type is Copy.
Source§

fn data_value_align(&self) -> usize

Returns the alignment of the data represented by the current type.
Source§

fn data_value_size(&self) -> usize

Returns the size of the data represented by this type.
Source§

impl DataTypeCopy for NoData

Source§

fn data_value_copy_default(&self) -> Option<Self::Value>

Returns some default value corresponding to the current (Copy) type. Read more
Source§

impl DataValue for NoData

Source§

type Type = ()

The DataType type that pairs with this DataValue.
Source§

fn data_type(&self) -> Self::Type

Returns the data type corresponding to the current value.
Source§

fn data_value_is_copy(&self) -> bool

Whether the data type in the current variant is Copy.
Source§

impl DataValueCopy for NoData

Source§

fn data_type_copy(&self) -> Self::Type

Returns the data type corresponding to the current (Copy) value. Read more
Source§

impl DataRaw for NoData

Available on crate feature unsafe_layout only.