Skip to main content

ILRUCacheAllocationStrategyMethods

Trait ILRUCacheAllocationStrategyMethods 

Source
pub trait ILRUCacheAllocationStrategyMethods: ILRUCacheAllocationStrategy {
    // Provided methods
    fn ctor(
        self,
        pool_max_size: impl Into<i32>,
        pool_capacity: impl Into<i32>,
        pool_cache_max_size: impl Into<i32>,
        initial_pool_cache_capacity: impl Into<i32>,
    ) { ... }
    fn get_pool(self) -> List_1<Object> { ... }
    fn release_pool(self, pool: impl Into<List_1<Object>>) { ... }
    fn new(
        self,
        type: impl Into<SystemType>,
        type_hash: impl Into<i32>,
    ) -> Object { ... }
    fn release(self, type_hash: impl Into<i32>, obj: impl Into<Object>) { ... }
}

Provided Methods§

Source

fn ctor( self, pool_max_size: impl Into<i32>, pool_capacity: impl Into<i32>, pool_cache_max_size: impl Into<i32>, initial_pool_cache_capacity: impl Into<i32>, )

.ctor(i32, i32, i32, i32) overload

Source

fn get_pool(self) -> List_1<Object>

GetPool() overload

Source

fn release_pool(self, pool: impl Into<List_1<Object>>)

ReleasePool(crate::system::collections::generic::list_1::List_1<crate::system::object::Object>) overload

Source

fn new(self, type: impl Into<SystemType>, type_hash: impl Into<i32>) -> Object

New(::unity::SystemType, i32) overload

Source

fn release(self, type_hash: impl Into<i32>, obj: impl Into<Object>)

Release(i32, crate::system::object::Object) overload

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<__T: ILRUCacheAllocationStrategy> ILRUCacheAllocationStrategyMethods for __T

Available on crate feature unity_engine-resource_management-util-lrucacheallocationstrategy only.