Skip to main content

EntityRef

Type Alias EntityRef 

Source
pub type EntityRef = Option<ErasedEntityHandle>;
Expand description

An optional reference to an entity. None represents worldspawn.

Aliased Type§

pub enum EntityRef {
    None,
    Some(NonZero<u64>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(NonZero<u64>)

Some value of type T.

Trait Implementations§

Source§

impl TryFrom<Value> for EntityRef

Source§

type Error = Error

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

fn try_from(value: Value) -> Result<Self, Self::Error>

Performs the conversion.