Skip to main content

IDefaultAllocationStrategyMethods

Trait IDefaultAllocationStrategyMethods 

Source
pub trait IDefaultAllocationStrategyMethods: IDefaultAllocationStrategy {
    // 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>) { ... }
    fn ctor(self) { ... }
}

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

Source

fn ctor(self)

.ctor() 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: IDefaultAllocationStrategy> IDefaultAllocationStrategyMethods for __T

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