Enum MemoryStrategy
#[repr(i32)]pub enum MemoryStrategy {
KeepInMemory = 0,
OptimizeMemory = 1,
}Expand description
Legacy version of enum “kanzi.ResourceManager.MemoryStrategy”. %Resource manager memory strategy.
Variants§
KeepInMemory = 0
When a resource is no longer referenced, the resource manager keeps the resource in memory until you call purge().
OptimizeMemory = 1
When a resource is no longer referenced, the resource manager deletes the resource and frees the (CPU and GPU) memory used by the resource.
Implementations§
§impl MemoryStrategy
impl MemoryStrategy
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> MemoryStrategy
Trait Implementations§
§impl Clone for MemoryStrategy
impl Clone for MemoryStrategy
§fn clone(&self) -> MemoryStrategy
fn clone(&self) -> MemoryStrategy
Returns a duplicate 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 more§impl Debug for MemoryStrategy
impl Debug for MemoryStrategy
§impl Display for MemoryStrategy
impl Display for MemoryStrategy
§impl PartialEq for MemoryStrategy
impl PartialEq for MemoryStrategy
§impl VariantConstraint for MemoryStrategy
impl VariantConstraint for MemoryStrategy
§type DataArg<'a> = MemoryStrategy
type DataArg<'a> = MemoryStrategy
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = MemoryStrategy
type RetArg = MemoryStrategy
§fn as_arg(&self) -> <MemoryStrategy as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <MemoryStrategy as VariantConstraint>::DataArg<'_>
impl Copy for MemoryStrategy
impl Eq for MemoryStrategy
impl PropertyTypeConstraint for MemoryStrategy
impl StructuralPartialEq for MemoryStrategy
Auto Trait Implementations§
impl Freeze for MemoryStrategy
impl RefUnwindSafe for MemoryStrategy
impl Send for MemoryStrategy
impl Sync for MemoryStrategy
impl Unpin for MemoryStrategy
impl UnwindSafe for MemoryStrategy
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