Skip to main content

IScaleFuncMethods

Trait IScaleFuncMethods 

Source
pub trait IScaleFuncMethods: IScaleFunc {
    // Provided methods
    fn ctor(self, object: impl Into<Object>, method: impl Into<IntPtr>) { ... }
    fn invoke(self, size: impl Into<Vector2Int>) -> Vector2Int { ... }
}

Provided Methods§

Source

fn ctor(self, object: impl Into<Object>, method: impl Into<IntPtr>)

.ctor(crate::system::object::Object, ::unity::IntPtr) overload

Source

fn invoke(self, size: impl Into<Vector2Int>) -> Vector2Int

Invoke(crate::unity_engine::vector2int::Vector2Int) 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: IScaleFunc> IScaleFuncMethods for __T

Available on crate feature unity_engine-rendering-scalefunc only.