#[repr(transparent)]pub struct NoDeps<T: Component>(pub T);Expand description
A wrapper type for components that do not have any asset dependencies.
This type is useful when you want to use a component as an asset tree
but it does not implement AssetTree trait or should not give any dependencies.
Tuple Fields§
§0: TTrait Implementations§
Source§impl<T: Component> AssetTree for NoDeps<T>
impl<T: Component> AssetTree for NoDeps<T>
Source§fn asset_dependencies(&self) -> impl IntoIterator<Item = AssetPathStatic>
fn asset_dependencies(&self) -> impl IntoIterator<Item = AssetPathStatic>
Returns an iterator over the asset dependencies of this component. Read more
Source§impl<T: Ord + Component> Ord for NoDeps<T>
impl<T: Ord + Component> Ord for NoDeps<T>
Source§impl<T: PartialOrd + Component> PartialOrd for NoDeps<T>
impl<T: PartialOrd + Component> PartialOrd for NoDeps<T>
impl<T: Copy + Component> Copy for NoDeps<T>
impl<T: Eq + Component> Eq for NoDeps<T>
impl<T: Component> StructuralPartialEq for NoDeps<T>
Auto Trait Implementations§
impl<T> Freeze for NoDeps<T>where
T: Freeze,
impl<T> RefUnwindSafe for NoDeps<T>where
T: RefUnwindSafe,
impl<T> Send for NoDeps<T>
impl<T> Sync for NoDeps<T>
impl<T> Unpin for NoDeps<T>where
T: Unpin,
impl<T> UnwindSafe for NoDeps<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.