#[repr(C)]pub struct IAsset<T> { /* private fields */ }
Expand description
An owned pointer to a wrapped native object.
Implementations
sourceimpl<T> IAsset<T>
impl<T> IAsset<T>
sourcepub fn from_raw(thing: &*mut som_asset_t) -> &mut IAsset<T>
pub fn from_raw(thing: &*mut som_asset_t) -> &mut IAsset<T>
Cast the pointer to a managed asset reference.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for IAsset<T> where
T: RefUnwindSafe,
impl<T> !Send for IAsset<T>
impl<T> !Sync for IAsset<T>
impl<T> Unpin for IAsset<T> where
T: Unpin,
impl<T> UnwindSafe for IAsset<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more