Struct EntityRefExcept
pub struct EntityRefExcept<'w, 's, B>where
B: Bundle,{ /* private fields */ }Expand description
Provides read-only access to a single entity and all its components, save for an explicitly-enumerated set.
Implementations§
§impl<'w, 's, B> EntityRefExcept<'w, 's, B>where
B: Bundle,
impl<'w, 's, B> EntityRefExcept<'w, 's, B>where
B: Bundle,
pub fn into_filtered(self) -> FilteredEntityRef<'w, 's>
pub fn into_filtered(self) -> FilteredEntityRef<'w, 's>
Consumes self and returns a FilteredEntityRef, which provides
read-only access to all of the entity’s components, except for the ones
in B.
pub fn get<C>(&self) -> Option<&'w C>where
C: Component,
pub fn get<C>(&self) -> Option<&'w C>where
C: Component,
Gets access to the component of type C for the current entity. Returns
None if the component doesn’t have a component of that type or if the
type is one of the excluded components.
pub fn get_ref<C>(&self) -> Option<Ref<'w, C>>where
C: Component,
pub fn get_ref<C>(&self) -> Option<Ref<'w, C>>where
C: Component,
Gets access to the component of type C for the current entity,
including change detection information. Returns None if the component
doesn’t have a component of that type or if the type is one of the
excluded components.
pub fn spawned_by(&self) -> MaybeLocation
pub fn spawned_by(&self) -> MaybeLocation
Returns the source code location from which this entity has been spawned.
pub fn spawn_tick(&self) -> Tick
pub fn spawn_tick(&self) -> Tick
Returns the Tick at which this entity has been spawned.
pub fn get_by_id(&self, component_id: ComponentId) -> Option<Ptr<'w>>
pub fn get_by_id(&self, component_id: ComponentId) -> Option<Ptr<'w>>
Gets the component of the given ComponentId from the entity.
You should prefer to use the typed API Self::get where possible and only
use this in cases where the actual component types are not known at
compile time.
Unlike EntityRefExcept::get, this returns a raw pointer to the component,
which is only valid while the EntityRefExcept is alive.
pub fn contains<T>(&self) -> boolwhere
T: Component,
pub fn contains<T>(&self) -> boolwhere
T: Component,
Returns true if the current entity has a component of type T.
Otherwise, this returns false.
§Notes
If you do not know the concrete type of a component, consider using
Self::contains_id or Self::contains_type_id.
pub fn contains_id(&self, component_id: ComponentId) -> bool
pub fn contains_id(&self, component_id: ComponentId) -> bool
Returns true if the current entity has a component identified by component_id.
Otherwise, this returns false.
§Notes
- If you know the concrete type of the component, you should prefer
Self::contains. - If you know the component’s
TypeIdbut not itsComponentId, consider usingSelf::contains_type_id.
pub fn contains_type_id(&self, type_id: TypeId) -> bool
pub fn contains_type_id(&self, type_id: TypeId) -> bool
Returns true if the current entity has a component with the type identified by type_id.
Otherwise, this returns false.
§Notes
- If you know the concrete type of the component, you should prefer
Self::contains. - If you have a
ComponentIdinstead of aTypeId, consider usingSelf::contains_id.
pub fn get_change_ticks<T>(&self) -> Option<ComponentTicks>where
T: Component,
pub fn get_change_ticks<T>(&self) -> Option<ComponentTicks>where
T: Component,
Retrieves the change ticks for the given component. This can be useful for implementing change detection in custom runtimes.
pub fn get_change_ticks_by_id(
&self,
component_id: ComponentId,
) -> Option<ComponentTicks>
pub fn get_change_ticks_by_id( &self, component_id: ComponentId, ) -> Option<ComponentTicks>
Retrieves the change ticks for the given ComponentId. This can be useful for implementing change
detection in custom runtimes.
You should prefer to use the typed API Self::get_change_ticks where possible and only
use this in cases where the actual component types are not known at
compile time.
Trait Implementations§
§impl<B> Clone for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> Clone for EntityRefExcept<'_, '_, B>where
B: Bundle,
§fn clone(&self) -> EntityRefExcept<'_, '_, B>
fn clone(&self) -> EntityRefExcept<'_, '_, B>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<B> ContainsEntity for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> ContainsEntity for EntityRefExcept<'_, '_, B>where
B: Bundle,
§impl<'w, 's, B> From<&'w EntityMutExcept<'_, 's, B>> for EntityRefExcept<'w, 's, B>where
B: Bundle,
impl<'w, 's, B> From<&'w EntityMutExcept<'_, 's, B>> for EntityRefExcept<'w, 's, B>where
B: Bundle,
§fn from(entity: &'w EntityMutExcept<'_, 's, B>) -> EntityRefExcept<'w, 's, B>
fn from(entity: &'w EntityMutExcept<'_, 's, B>) -> EntityRefExcept<'w, 's, B>
§impl<'w, 's, B> From<&EntityRefExcept<'w, 's, B>> for FilteredEntityRef<'w, 's>where
B: Bundle,
impl<'w, 's, B> From<&EntityRefExcept<'w, 's, B>> for FilteredEntityRef<'w, 's>where
B: Bundle,
§fn from(entity: &EntityRefExcept<'w, 's, B>) -> FilteredEntityRef<'w, 's>
fn from(entity: &EntityRefExcept<'w, 's, B>) -> FilteredEntityRef<'w, 's>
§impl<'w, 's, B> From<EntityMutExcept<'w, 's, B>> for EntityRefExcept<'w, 's, B>where
B: Bundle,
impl<'w, 's, B> From<EntityMutExcept<'w, 's, B>> for EntityRefExcept<'w, 's, B>where
B: Bundle,
§fn from(entity: EntityMutExcept<'w, 's, B>) -> EntityRefExcept<'w, 's, B>
fn from(entity: EntityMutExcept<'w, 's, B>) -> EntityRefExcept<'w, 's, B>
§impl<'w, 's, B> From<EntityRefExcept<'w, 's, B>> for FilteredEntityRef<'w, 's>where
B: Bundle,
impl<'w, 's, B> From<EntityRefExcept<'w, 's, B>> for FilteredEntityRef<'w, 's>where
B: Bundle,
§fn from(entity: EntityRefExcept<'w, 's, B>) -> FilteredEntityRef<'w, 's>
fn from(entity: EntityRefExcept<'w, 's, B>) -> FilteredEntityRef<'w, 's>
§impl<B> Hash for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> Hash for EntityRefExcept<'_, '_, B>where
B: Bundle,
§impl<B> Ord for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> Ord for EntityRefExcept<'_, '_, B>where
B: Bundle,
§fn cmp(&self, other: &EntityRefExcept<'_, '_, B>) -> Ordering
fn cmp(&self, other: &EntityRefExcept<'_, '_, B>) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
§impl<B> PartialEq for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> PartialEq for EntityRefExcept<'_, '_, B>where
B: Bundle,
§fn eq(&self, other: &EntityRefExcept<'_, '_, B>) -> bool
fn eq(&self, other: &EntityRefExcept<'_, '_, B>) -> bool
self and other values to be equal, and is used by ==.§impl<B> PartialOrd for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> PartialOrd for EntityRefExcept<'_, '_, B>where
B: Bundle,
§fn partial_cmp(&self, other: &EntityRefExcept<'_, '_, B>) -> Option<Ordering>
fn partial_cmp(&self, other: &EntityRefExcept<'_, '_, B>) -> Option<Ordering>
EntityRefExcept’s comparison trait implementations match the underlying Entity,
and cannot discern between different worlds.
§impl<'a, 'b, B> QueryData for EntityRefExcept<'a, 'b, B>where
B: Bundle,
impl<'a, 'b, B> QueryData for EntityRefExcept<'a, 'b, B>where
B: Bundle,
§const IS_READ_ONLY: bool = true
const IS_READ_ONLY: bool = true
§const IS_ARCHETYPAL: bool = true
const IS_ARCHETYPAL: bool = true
§type ReadOnly = EntityRefExcept<'a, 'b, B>
type ReadOnly = EntityRefExcept<'a, 'b, B>
QueryData, which satisfies the ReadOnlyQueryData trait.§type Item<'w, 's> = EntityRefExcept<'w, 's, B>
type Item<'w, 's> = EntityRefExcept<'w, 's, B>
WorldQuery
This will be the data retrieved by the query,
and is visible to the end user when calling e.g. Query<Self>::get.§fn shrink<'wlong, 'wshort, 's>(
item: <EntityRefExcept<'a, 'b, B> as QueryData>::Item<'wlong, 's>,
) -> <EntityRefExcept<'a, 'b, B> as QueryData>::Item<'wshort, 's>where
'wlong: 'wshort,
fn shrink<'wlong, 'wshort, 's>(
item: <EntityRefExcept<'a, 'b, B> as QueryData>::Item<'wlong, 's>,
) -> <EntityRefExcept<'a, 'b, B> as QueryData>::Item<'wshort, 's>where
'wlong: 'wshort,
§unsafe fn fetch<'w, 's>(
access: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
fetch: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>,
entity: Entity,
_: TableRow,
) -> Option<<EntityRefExcept<'a, 'b, B> as QueryData>::Item<'w, 's>>
unsafe fn fetch<'w, 's>( access: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State, fetch: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>, entity: Entity, _: TableRow, ) -> Option<<EntityRefExcept<'a, 'b, B> as QueryData>::Item<'w, 's>>
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 more§fn iter_access(
state: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
) -> impl Iterator<Item = EcsAccessType<'_>>
fn iter_access( state: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State, ) -> impl Iterator<Item = EcsAccessType<'_>>
QueryData::fetch. Access conflicts are usually
checked in WorldQuery::update_component_access, but in certain cases this method can be useful to implement
a way of checking for access conflicts in a non-allocating way.§fn provide_extra_access(
_state: &mut Self::State,
_access: &mut Access,
_available_access: &Access,
)
fn provide_extra_access( _state: &mut Self::State, _access: &mut Access, _available_access: &Access, )
update_component_access.
Implementations may add additional access that is a subset of available_access
and does not conflict with anything in access,
and must update access to include that access. Read more§impl<'a, 'b, B> WorldQuery for EntityRefExcept<'a, 'b, B>where
B: Bundle,
impl<'a, 'b, B> WorldQuery for EntityRefExcept<'a, 'b, B>where
B: Bundle,
§const IS_DENSE: bool = true
const IS_DENSE: bool = true
§type Fetch<'w> = EntityFetch<'w>
type Fetch<'w> = EntityFetch<'w>
WorldQuery to compute Self::Item for each entity.§type State = Access
type State = Access
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.§fn shrink_fetch<'wlong, 'wshort>(
fetch: <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'wlong>,
) -> <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
fn shrink_fetch<'wlong, 'wshort>(
fetch: <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'wlong>,
) -> <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'wshort>where
'wlong: 'wshort,
§unsafe fn init_fetch<'w, 's>(
world: UnsafeWorldCell<'w>,
_: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
last_run: Tick,
this_run: Tick,
) -> <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>
unsafe fn init_fetch<'w, 's>( world: UnsafeWorldCell<'w>, _: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State, last_run: Tick, this_run: Tick, ) -> <EntityRefExcept<'a, 'b, B> 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 more§unsafe fn set_archetype<'w, 's>(
_: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>,
_: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
_: &'w Archetype,
_: &'w Table,
)
unsafe fn set_archetype<'w, 's>( _: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>, _: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State, _: &'w Archetype, _: &'w Table, )
Archetype. This will always be called on
archetypes that match this WorldQuery. Read more§unsafe fn set_table<'w, 's>(
_: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>,
_: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
_: &'w Table,
)
unsafe fn set_table<'w, 's>( _: &mut <EntityRefExcept<'a, 'b, B> as WorldQuery>::Fetch<'w>, _: &'s <EntityRefExcept<'a, 'b, B> as WorldQuery>::State, _: &'w Table, )
Table. This will always be called on tables
that match this WorldQuery. Read more§fn update_component_access(
state: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
filtered_access: &mut FilteredAccess,
)
fn update_component_access( state: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State, filtered_access: &mut FilteredAccess, )
§fn init_state(
world: &mut World,
) -> <EntityRefExcept<'a, 'b, B> as WorldQuery>::State
fn init_state( world: &mut World, ) -> <EntityRefExcept<'a, 'b, B> as WorldQuery>::State
State for this WorldQuery type.§fn get_state(
components: &Components,
) -> Option<<EntityRefExcept<'a, 'b, B> as WorldQuery>::State>
fn get_state( components: &Components, ) -> Option<<EntityRefExcept<'a, 'b, B> as WorldQuery>::State>
§fn matches_component_set(
_: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State,
_: &impl Fn(ComponentId) -> bool,
) -> bool
fn matches_component_set( _: &<EntityRefExcept<'a, 'b, B> as WorldQuery>::State, _: &impl Fn(ComponentId) -> bool, ) -> bool
§fn init_nested_access(
_state: &Self::State,
_system_name: Option<&str>,
_component_access_set: &mut FilteredAccessSet,
_world: UnsafeWorldCell<'_>,
)
fn init_nested_access( _state: &Self::State, _system_name: Option<&str>, _component_access_set: &mut FilteredAccessSet, _world: UnsafeWorldCell<'_>, )
WorldQuery. Read more§fn update_archetypes(_state: &mut Self::State, _world: UnsafeWorldCell<'_>)
fn update_archetypes(_state: &mut Self::State, _world: UnsafeWorldCell<'_>)
impl<B> ArchetypeQueryData for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> Copy for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> EntityEquivalent for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> Eq for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> IterQueryData for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> ReadOnlyQueryData for EntityRefExcept<'_, '_, B>where
B: Bundle,
impl<B> SingleEntityQueryData for EntityRefExcept<'_, '_, B>where
B: Bundle,
Auto Trait Implementations§
impl<'w, 's, B> Freeze for EntityRefExcept<'w, 's, B>
impl<'w, 's, B> !RefUnwindSafe for EntityRefExcept<'w, 's, B>
impl<'w, 's, B> Send for EntityRefExcept<'w, 's, B>
impl<'w, 's, B> Sync for EntityRefExcept<'w, 's, B>
impl<'w, 's, B> Unpin for EntityRefExcept<'w, 's, B>where
B: Unpin,
impl<'w, 's, B> UnsafeUnpin for EntityRefExcept<'w, 's, B>
impl<'w, 's, B> !UnwindSafe for EntityRefExcept<'w, 's, B>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§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.§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.§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.§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.§impl<T> DowncastSend for T
impl<T> DowncastSend for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<T> FmtForward for T
impl<T> FmtForward for T
§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.§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.§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.§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.§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.§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.§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.§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.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§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 more§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 more§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
§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
§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.§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.§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.§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Tap for T
impl<T> Tap for T
§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 more§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 more§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 more§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 more§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 more§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 more§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.§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.§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.§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.§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.§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.§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.