Struct bones_render::prelude::UntypedResources
source · pub struct UntypedResources { /* private fields */ }Expand description
Implementations§
source§impl UntypedResources
impl UntypedResources
sourcepub fn new() -> UntypedResources
pub fn new() -> UntypedResources
Create an empty UntypedResources.
sourcepub fn insert(
&mut self,
uuid: Ulid,
resource: UntypedResource
) -> Option<UntypedResource>
pub fn insert(
&mut self,
uuid: Ulid,
resource: UntypedResource
) -> Option<UntypedResource>
Insert a new resource
sourcepub fn get(&self, uuid: Ulid) -> Option<Arc<AtomicRefCell<*mut u8>>>
pub fn get(&self, uuid: Ulid) -> Option<Arc<AtomicRefCell<*mut u8>>>
Get a cell containing the resource data pointer for the given ID
sourcepub fn remove(&mut self, uuid: Ulid) -> Option<UntypedResource>
pub fn remove(&mut self, uuid: Ulid) -> Option<UntypedResource>
Remove a resource
Trait Implementations§
source§impl Clone for UntypedResources
impl Clone for UntypedResources
source§fn clone(&self) -> UntypedResources
fn clone(&self) -> UntypedResources
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 moresource§impl Default for UntypedResources
impl Default for UntypedResources
source§fn default() -> UntypedResources
fn default() -> UntypedResources
Returns the “default value” for a type. Read more