pub struct AnyOf<T>(/* private fields */);
Expand description
The AnyOf
query parameter fetches entities with any of the component types included in T.
Query<AnyOf<(&A, &B, &mut C)>>
is equivalent to Query<(Option<&A>, Option<&B>, Option<&mut C>), Or<(With<A>, With<B>, With<C>)>>
.
Each of the components in T
is returned as an Option
, as with Option<A>
queries.
Entities are guaranteed to have at least one of the components in T
.
Trait Implementations§
Source§impl QueryData for AnyOf<()>
impl QueryData for AnyOf<()>
Source§const IS_READ_ONLY: bool = true
const IS_READ_ONLY: bool = true
Source§type ReadOnly = AnyOf<()>
type ReadOnly = AnyOf<()>
QueryData
, which satisfies the ReadOnlyQueryData
trait.Source§type Item<'w> = ()
type Item<'w> = ()
WorldQuery
This will be the data retrieved by the query,
and is visible to the end user when calling e.g. Query<Self>::get
.Source§fn shrink<'wlong, 'wshort>(
item: <AnyOf<()> as QueryData>::Item<'wlong>,
) -> <AnyOf<()> as QueryData>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <AnyOf<()> as QueryData>::Item<'wlong>,
) -> <AnyOf<()> as QueryData>::Item<'wshort>where
'wlong: 'wshort,
Source§unsafe fn fetch<'w>(
_fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow,
) -> <AnyOf<()> as QueryData>::Item<'w>
unsafe fn fetch<'w>( _fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> <AnyOf<()> as QueryData>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with an entity
in the current archetype.
Accesses components registered in WorldQuery::update_component_access
. Read moreSource§impl<F> QueryData for AnyOf<(F₁, F₂, …, Fₙ)>where
F: QueryData,
This trait is implemented for tuples up to 16 items long.
impl<F> QueryData for AnyOf<(F₁, F₂, …, Fₙ)>where
F: QueryData,
This trait is implemented for tuples up to 16 items long.
Source§const IS_READ_ONLY: bool
const IS_READ_ONLY: bool
Source§type ReadOnly = AnyOf<(<F as QueryData>::ReadOnly,)>
type ReadOnly = AnyOf<(<F as QueryData>::ReadOnly,)>
QueryData
, which satisfies the ReadOnlyQueryData
trait.Source§type Item<'w> = (Option<<F as QueryData>::Item<'w>>,)
type Item<'w> = (Option<<F as QueryData>::Item<'w>>,)
WorldQuery
This will be the data retrieved by the query,
and is visible to the end user when calling e.g. Query<Self>::get
.Source§fn shrink<'wlong, 'wshort>(
item: <AnyOf<(F,)> as QueryData>::Item<'wlong>,
) -> <AnyOf<(F,)> as QueryData>::Item<'wshort>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort>(
item: <AnyOf<(F,)> as QueryData>::Item<'wlong>,
) -> <AnyOf<(F,)> as QueryData>::Item<'wshort>where
'wlong: 'wshort,
Source§unsafe fn fetch<'w>(
_fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>,
_entity: Entity,
_table_row: TableRow,
) -> <AnyOf<(F,)> as QueryData>::Item<'w>
unsafe fn fetch<'w>( _fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>, _entity: Entity, _table_row: TableRow, ) -> <AnyOf<(F,)> as QueryData>::Item<'w>
Self::Item
for either the given entity
in the current Table
,
or for the given entity
in the current Archetype
. This must always be called after
WorldQuery::set_table
with a table_row
in the range of the current Table
or after
WorldQuery::set_archetype
with an entity
in the current archetype.
Accesses components registered in WorldQuery::update_component_access
. Read moreSource§impl WorldQuery for AnyOf<()>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replaces the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
impl WorldQuery for AnyOf<()>
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replaces the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
Source§const IS_DENSE: bool = true
const IS_DENSE: bool = true
Source§type Fetch<'w> = ()
type Fetch<'w> = ()
WorldQuery
to compute Self::Item
for each entity.Source§type State = ()
type State = ()
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.Source§fn shrink_fetch<'wlong, 'wshort>(
fetch: <AnyOf<()> as WorldQuery>::Fetch<'wlong>,
) -> <AnyOf<()> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <AnyOf<()> as WorldQuery>::Fetch<'wlong>,
) -> <AnyOf<()> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
Source§unsafe fn init_fetch<'w>(
_world: UnsafeWorldCell<'w>,
state: &<AnyOf<()> as WorldQuery>::State,
_last_run: Tick,
_this_run: Tick,
) -> <AnyOf<()> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( _world: UnsafeWorldCell<'w>, state: &<AnyOf<()> as WorldQuery>::State, _last_run: Tick, _this_run: Tick, ) -> <AnyOf<()> as WorldQuery>::Fetch<'w>
Self::Fetch
,
by combining data from the World
with the cached Self::State
.
Readonly accesses resources registered in WorldQuery::update_component_access
. Read moreSource§unsafe fn set_archetype<'w>(
_fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>,
_state: &<AnyOf<()> as WorldQuery>::State,
_archetype: &'w Archetype,
_table: &'w Table,
)
unsafe fn set_archetype<'w>( _fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>, _state: &<AnyOf<()> as WorldQuery>::State, _archetype: &'w Archetype, _table: &'w Table, )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moreSource§unsafe fn set_table<'w>(
_fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>,
_state: &<AnyOf<()> as WorldQuery>::State,
_table: &'w Table,
)
unsafe fn set_table<'w>( _fetch: &mut <AnyOf<()> as WorldQuery>::Fetch<'w>, _state: &<AnyOf<()> as WorldQuery>::State, _table: &'w Table, )
Table
. This will always be called on tables
that match this WorldQuery
. Read moreSource§fn update_component_access(
state: &<AnyOf<()> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>,
)
fn update_component_access( state: &<AnyOf<()> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId>, )
Source§fn init_state(world: &mut World) -> <AnyOf<()> as WorldQuery>::State
fn init_state(world: &mut World) -> <AnyOf<()> as WorldQuery>::State
State
for this WorldQuery
type.Source§fn get_state(
components: &Components,
) -> Option<<AnyOf<()> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<AnyOf<()> as WorldQuery>::State>
Source§fn matches_component_set(
_state: &<AnyOf<()> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool,
) -> bool
fn matches_component_set( _state: &<AnyOf<()> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool
Source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moreSource§impl<F> WorldQuery for AnyOf<(F₁, F₂, …, Fₙ)>where
F: WorldQuery,
This trait is implemented for tuples up to 16 items long.
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replaces the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
impl<F> WorldQuery for AnyOf<(F₁, F₂, …, Fₙ)>where
F: WorldQuery,
This trait is implemented for tuples up to 16 items long.
SAFETY:
fetch
accesses are a subset of the subqueries’ accesses
This is sound because update_component_access
and update_archetype_component_access
adds accesses according to the implementations of all the subqueries.
update_component_access
replaces the filters with a disjunction where every element is a conjunction of the previous filters and the filters of one of the subqueries.
This is sound because matches_component_set
returns a disjunction of the results of the subqueries’ implementations.
Source§const IS_DENSE: bool
const IS_DENSE: bool
Source§type Fetch<'w> = ((<F as WorldQuery>::Fetch<'w>, bool),)
type Fetch<'w> = ((<F as WorldQuery>::Fetch<'w>, bool),)
WorldQuery
to compute Self::Item
for each entity.Source§type State = (<F as WorldQuery>::State,)
type State = (<F as WorldQuery>::State,)
Self::Fetch
. This will be cached inside QueryState
,
so it is best to move as much data / computation here as possible to reduce the cost of
constructing Self::Fetch
.Source§fn shrink_fetch<'wlong, 'wshort>(
fetch: <AnyOf<(F,)> as WorldQuery>::Fetch<'wlong>,
) -> <AnyOf<(F,)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <AnyOf<(F,)> as WorldQuery>::Fetch<'wlong>,
) -> <AnyOf<(F,)> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
Source§unsafe fn init_fetch<'w>(
_world: UnsafeWorldCell<'w>,
state: &<AnyOf<(F,)> as WorldQuery>::State,
_last_run: Tick,
_this_run: Tick,
) -> <AnyOf<(F,)> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w>( _world: UnsafeWorldCell<'w>, state: &<AnyOf<(F,)> as WorldQuery>::State, _last_run: Tick, _this_run: Tick, ) -> <AnyOf<(F,)> as WorldQuery>::Fetch<'w>
Self::Fetch
,
by combining data from the World
with the cached Self::State
.
Readonly accesses resources registered in WorldQuery::update_component_access
. Read moreSource§unsafe fn set_archetype<'w>(
_fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>,
_state: &<AnyOf<(F,)> as WorldQuery>::State,
_archetype: &'w Archetype,
_table: &'w Table,
)
unsafe fn set_archetype<'w>( _fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>, _state: &<AnyOf<(F,)> as WorldQuery>::State, _archetype: &'w Archetype, _table: &'w Table, )
Archetype
. This will always be called on
archetypes that match this WorldQuery
. Read moreSource§unsafe fn set_table<'w>(
_fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>,
_state: &<AnyOf<(F,)> as WorldQuery>::State,
_table: &'w Table,
)
unsafe fn set_table<'w>( _fetch: &mut <AnyOf<(F,)> as WorldQuery>::Fetch<'w>, _state: &<AnyOf<(F,)> as WorldQuery>::State, _table: &'w Table, )
Table
. This will always be called on tables
that match this WorldQuery
. Read moreSource§fn update_component_access(
state: &<AnyOf<(F,)> as WorldQuery>::State,
access: &mut FilteredAccess<ComponentId>,
)
fn update_component_access( state: &<AnyOf<(F,)> as WorldQuery>::State, access: &mut FilteredAccess<ComponentId>, )
Source§fn init_state(world: &mut World) -> <AnyOf<(F,)> as WorldQuery>::State
fn init_state(world: &mut World) -> <AnyOf<(F,)> as WorldQuery>::State
State
for this WorldQuery
type.Source§fn get_state(
components: &Components,
) -> Option<<AnyOf<(F,)> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<AnyOf<(F,)> as WorldQuery>::State>
Source§fn matches_component_set(
_state: &<AnyOf<(F,)> as WorldQuery>::State,
_set_contains_id: &impl Fn(ComponentId) -> bool,
) -> bool
fn matches_component_set( _state: &<AnyOf<(F,)> as WorldQuery>::State, _set_contains_id: &impl Fn(ComponentId) -> bool, ) -> bool
Source§fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
fn set_access(_state: &mut Self::State, _access: &FilteredAccess<ComponentId>)
FilteredEntityRef
or FilteredEntityMut
. Read moreimpl ReadOnlyQueryData for AnyOf<()>
SAFETY: each item in the tuple is read only
impl<F> ReadOnlyQueryData for AnyOf<(F₁, F₂, …, Fₙ)>where
F: ReadOnlyQueryData,
This trait is implemented for tuples up to 16 items long. SAFETY: each item in the tuple is read only
Auto Trait Implementations§
impl<T> Freeze for AnyOf<T>
impl<T> RefUnwindSafe for AnyOf<T>where
T: RefUnwindSafe,
impl<T> Send for AnyOf<T>where
T: Send,
impl<T> Sync for AnyOf<T>where
T: Sync,
impl<T> Unpin for AnyOf<T>where
T: Unpin,
impl<T> UnwindSafe for AnyOf<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T, U> AsBindGroupShaderType<U> for T
impl<T, U> AsBindGroupShaderType<U> for T
Source§fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
fn as_bind_group_shader_type(&self, _images: &RenderAssets<GpuImage>) -> U
T
ShaderType
for self
. When used in AsBindGroup
derives, it is safe to assume that all images in self
exist.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
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
, which can then be
downcast
into Box<dyn ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
, which can then be further
downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.Source§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
self
to use its Display
implementation when
Debug
-formatted.Source§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.Source§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.Source§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.Source§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.Source§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.Source§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
impl<F, T> IntoSample<T> for Fwhere
T: FromSample<F>,
fn into_sample(self) -> T
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.