[][src]Trait nano_ecs::Get

pub trait Get<T> {
    unsafe fn get(self) -> Option<T>;
}

Gets a component type T from a raw pointer of Component.

Implemented for &mut T and &T.

Required methods

unsafe fn get(self) -> Option<T>

Gets component type.

This is an unsafe method because the lifetime of the return value is only valid for the scope.

Loading content...

Implementors

Loading content...