Enum bones_scripting::lua::bindings::ecsref::EcsRefData
source · pub enum EcsRefData {
Resource(AtomicUntypedResource),
Component(ComponentRef),
Asset(AssetRef),
Free(Rc<AtomicCell<SchemaBox>>),
}
Expand description
The kind of value reference for EcsRef
.
Variants§
Resource(AtomicUntypedResource)
A resource ref.
Component(ComponentRef)
A component ref.
Asset(AssetRef)
An asset ref.
Free(Rc<AtomicCell<SchemaBox>>)
A free-standing ref, not stored in the ECS.
Implementations§
source§impl EcsRefData
impl EcsRefData
sourcepub fn borrow(&self) -> EcsRefBorrowKind<'_>
pub fn borrow(&self) -> EcsRefBorrowKind<'_>
Immutably borrow the data.
sourcepub fn borrow_mut(&self) -> EcsRefBorrowMutKind<'_>
pub fn borrow_mut(&self) -> EcsRefBorrowMutKind<'_>
Mutably borrow the data.
Trait Implementations§
source§impl Clone for EcsRefData
impl Clone for EcsRefData
source§fn clone(&self) -> EcsRefData
fn clone(&self) -> EcsRefData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for EcsRefData
impl !RefUnwindSafe for EcsRefData
impl !Send for EcsRefData
impl !Sync for EcsRefData
impl Unpin for EcsRefData
impl !UnwindSafe for EcsRefData
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)