pub struct ResourceHandle<T> { /* private fields */ }
Expand description
Owning resource handle. Used as part of rend3’s interface.
Implementations§
Source§impl<T> ResourceHandle<T>
impl<T> ResourceHandle<T>
Sourcepub fn new(idx: usize) -> Self
pub fn new(idx: usize) -> Self
Create a new resource handle from an index.
Part of rend3’s internal interface, use Renderer::add_*
instead.
Sourcepub fn get_raw(&self) -> RawResourceHandle<T>
pub fn get_raw(&self) -> RawResourceHandle<T>
Gets the equivalent raw handle for this owning handle.
Part of rend3’s internal interface for accessing internal resrouces
Sourcepub fn get_weak_refcount(&self) -> Weak<()>
pub fn get_weak_refcount(&self) -> Weak<()>
Get the weak refcount for this owned handle.
Part of rend3’s internal interface.
Trait Implementations§
Source§impl<T> Clone for ResourceHandle<T>
impl<T> Clone for ResourceHandle<T>
Source§impl<T> Debug for ResourceHandle<T>
impl<T> Debug for ResourceHandle<T>
Source§impl<T> Hash for ResourceHandle<T>
impl<T> Hash for ResourceHandle<T>
Source§impl<T> PartialEq for ResourceHandle<T>
impl<T> PartialEq for ResourceHandle<T>
impl<T> Eq for ResourceHandle<T>
Auto Trait Implementations§
impl<T> Freeze for ResourceHandle<T>
impl<T> RefUnwindSafe for ResourceHandle<T>where
T: RefUnwindSafe,
impl<T> Send for ResourceHandle<T>where
T: Send,
impl<T> Sync for ResourceHandle<T>where
T: Sync,
impl<T> Unpin for ResourceHandle<T>where
T: Unpin,
impl<T> UnwindSafe for ResourceHandle<T>where
T: UnwindSafe,
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