OpacityExtension

Trait OpacityExtension 

Source
pub trait OpacityExtension {
    // Required methods
    fn register_opacity<Q: OpacityQuery + 'static>(&mut self) -> &mut Self;
    fn register_opacity_component<C: Component>(&mut self) -> &mut Self
       where &'static mut C: OpacityQuery;
    fn register_opacity_material2d<M: Material2d + OpacityAsset>(
        &mut self,
    ) -> &mut Self;
    fn register_opacity_material3d<M: Material + OpacityAsset>(
        &mut self,
    ) -> &mut Self;
}
Expand description

Extensions for App.

Required Methods§

Source

fn register_opacity<Q: OpacityQuery + 'static>(&mut self) -> &mut Self

Source

fn register_opacity_component<C: Component>(&mut self) -> &mut Self

Source

fn register_opacity_material2d<M: Material2d + OpacityAsset>( &mut self, ) -> &mut Self

Source

fn register_opacity_material3d<M: Material + OpacityAsset>( &mut self, ) -> &mut Self

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.

Implementations on Foreign Types§

Source§

impl OpacityExtension for App

Source§

fn register_opacity<Q: OpacityQuery + 'static>(&mut self) -> &mut Self

Source§

fn register_opacity_component<C: Component>(&mut self) -> &mut Self

Source§

fn register_opacity_material2d<M: Material2d + OpacityAsset>( &mut self, ) -> &mut Self

Source§

fn register_opacity_material3d<M: Material + OpacityAsset>( &mut self, ) -> &mut Self

Implementors§