bevy_asset

Trait VisitAssetDependencies

Source
pub trait VisitAssetDependencies {
    // Required method
    fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId));
}
Expand description

This trait defines how to visit the dependencies of an asset. For example, a 3D model might require both textures and meshes to be loaded.

Note that this trait is automatically implemented when deriving Asset.

Required Methods§

Source

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

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 VisitAssetDependencies for Option<UntypedHandle>

Source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Source§

impl VisitAssetDependencies for ()

Source§

fn visit_dependencies(&self, _visit: &mut impl FnMut(UntypedAssetId))

Source§

impl VisitAssetDependencies for Vec<UntypedHandle>

Source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Source§

impl<A: Asset> VisitAssetDependencies for Option<Handle<A>>

Source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Source§

impl<A: Asset> VisitAssetDependencies for Vec<Handle<A>>

Source§

fn visit_dependencies(&self, visit: &mut impl FnMut(UntypedAssetId))

Implementors§