pub enum RawCache {
Owned(*mut mu_Cache),
Borrowed(*mut mu_Cache),
}Expand description
Internal representation of a cache for rendering.
This enum manages the lifetime of the underlying C cache pointer:
Owned: Cache was created for a single render and will be freedBorrowed: Cache is owned by user code and should not be freed
Users typically don’t interact with this type directly; it’s used
internally by the render_to_* methods.
Variants§
Owned(*mut mu_Cache)
Temporary cache that will be freed when dropped
Borrowed(*mut mu_Cache)
Borrowed cache that remains owned by the caller
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RawCache
impl RefUnwindSafe for RawCache
impl !Send for RawCache
impl !Sync for RawCache
impl Unpin for RawCache
impl UnwindSafe for RawCache
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