Module bevy_query_ext::prelude
source · Expand description
Prelude module - Contains only the parts of the crate that are useful to consumers
Everything in this module can also be imported from the crate directly, but you
can import bevy_query_ext::prelude::* over bevy_query_ext::* to avoid
importing our internal modules.
Type Aliases
- Returns the dereferenced component
- Returns a clone of the dereferenced value (alias of
Cloned<AsDeref<T>>) - First either clones component T or gets the default value, then dereferences this value and clones it.
- Returns a copy of the dereferenced value (alias of
Copied<AsDeref<T>) - First either clones component T or gets the default value, then dereferences this value and copies it.
- First either copies component T or gets the default value, then dereferences this value and copies it.
- Returns the dereferenced component as a
Mut, or a reference if it is readonly. - When
TimplementsDereffor bool , this will return that value or the specified value if T has no result - When
TimplementsDereffor char , this will return that value or the specified value if T has no result - When
TimplementsDereffor i8 , this will return that value or the specified value if T has no result - When
TimplementsDereffor i16 , this will return that value or the specified value if T has no result - When
TimplementsDereffor i32 , this will return that value or the specified value if T has no result - When
TimplementsDereffor i64 , this will return that value or the specified value if T has no result - When
TimplementsDereffor i128 , this will return that value or the specified value if T has no result - When
TimplementsDereffor isize , this will return that value or the specified value if T has no result - When
TimplementsDereffor u8 , this will return that value or the specified value if T has no result - When
TimplementsDereffor u16 , this will return that value or the specified value if T has no result - When
TimplementsDereffor u32 , this will return that value or the specified value if T has no result - When
TimplementsDereffor u64 , this will return that value or the specified value if T has no result - When
TimplementsDereffor u128 , this will return that value or the specified value if T has no result - When
TimplementsDereffor usize , this will return that value or the specified value if T has no result - Clones a type when it is retrieved
- Copies a type when it is retrieved
- When
TimplementsBorrowforbool, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrBoolfor example of its use. - When
TimplementsBorrowforchar, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrCharfor example of its use. - If the query exists on the entity it is returned, or else the default for the query result
- When
TimplementsBorrowfori8, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrI8for example of its use. - When
TimplementsBorrowfori16, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrI16for example of its use. - When
TimplementsBorrowfori32, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrI32for example of its use. - When
TimplementsBorrowfori64, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrI64for example of its use. - When
TimplementsBorrowfori128, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrI128for example of its use. - When
TimplementsBorrowforisize, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrIsizefor example of its use. - When
TimplementsBorrowforu8, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrU8for example of its use. - When
TimplementsBorrowforu16, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrU16for example of its use. - When
TimplementsBorrowforu32, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrU32for example of its use. - When
TimplementsBorrowforu64, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrU64for example of its use. - When
TimplementsBorrowforu128, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrU128for example of its use. - When
TimplementsBorrowforusize, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, seeAsDerefOrUsizefor example of its use.