Skip to main content

IRequireComponentMethods

Trait IRequireComponentMethods 

Source
pub trait IRequireComponentMethods: IRequireComponent {
    // Provided methods
    fn ctor(self, required_component: impl Into<SystemType>) { ... }
    fn ctor_2(
        self,
        required_component: impl Into<SystemType>,
        required_component2: impl Into<SystemType>,
    ) { ... }
}

Provided Methods§

Source

fn ctor(self, required_component: impl Into<SystemType>)

.ctor(::unity::SystemType) overload

Source

fn ctor_2( self, required_component: impl Into<SystemType>, required_component2: impl Into<SystemType>, )

.ctor(::unity::SystemType, ::unity::SystemType) 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: IRequireComponent> IRequireComponentMethods for __T

Available on crate feature unity_engine-requirecomponent only.