Skip to main content

IIAllocationStrategyMethods

Trait IIAllocationStrategyMethods 

Source
pub trait IIAllocationStrategyMethods: IIAllocationStrategy {
    // Provided methods
    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 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: IIAllocationStrategy> IIAllocationStrategyMethods for __T

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