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 clone of component’s dereferenced value, or default for that type. See Cloned, AsDeref and OrDefault
  • 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 a copy of component’s dereferenced value, or default for that type. See Copied, AsDeref and OrDefault
  • Returns the dereferenced component as a Mut, or a reference if it is readonly.
  • When T implements Deref for bool , this will return that value or the specified value if T has no result
  • When T implements Deref for char , this will return that value or the specified value if T has no result
  • When T implements Deref for i8 , this will return that value or the specified value if T has no result
  • When T implements Deref for i16 , this will return that value or the specified value if T has no result
  • When T implements Deref for i32 , this will return that value or the specified value if T has no result
  • When T implements Deref for i64 , this will return that value or the specified value if T has no result
  • When T implements Deref for i128 , this will return that value or the specified value if T has no result
  • When T implements Deref for isize , this will return that value or the specified value if T has no result
  • When T implements Deref for u8 , this will return that value or the specified value if T has no result
  • When T implements Deref for u16 , this will return that value or the specified value if T has no result
  • When T implements Deref for u32 , this will return that value or the specified value if T has no result
  • When T implements Deref for u64 , this will return that value or the specified value if T has no result
  • When T implements Deref for u128 , this will return that value or the specified value if T has no result
  • When T implements Deref for usize , this will return that value or the specified value if T has no result
  • Clones a type when it is retrieved
  • Returns a clone of component or default. See Cloned and OrDefault
  • Copies a type when it is retrieved
  • Returns a copy of component or default. See Copied and OrDefault
  • When T implements Borrow for bool, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrBool for example of its use.
  • When T implements Borrow for char, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrChar for example of its use.
  • If the query exists on the entity it is returned, or else the default for the query result
  • When T implements Borrow for i8, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrI8 for example of its use.
  • When T implements Borrow for i16, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrI16 for example of its use.
  • When T implements Borrow for i32, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrI32 for example of its use.
  • When T implements Borrow for i64, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrI64 for example of its use.
  • When T implements Borrow for i128, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrI128 for example of its use.
  • When T implements Borrow for isize, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrIsize for example of its use.
  • When T implements Borrow for u8, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrU8 for example of its use.
  • When T implements Borrow for u16, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrU16 for example of its use.
  • When T implements Borrow for u32, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrU32 for example of its use.
  • When T implements Borrow for u64, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrU64 for example of its use.
  • When T implements Borrow for u128, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrU128 for example of its use.
  • When T implements Borrow for usize, this will return that value or the specified value if T has no result. It’s unlikely you’ll use this by itself, see AsDerefOrUsize for example of its use.