pub struct TraverseAnd<Control, Edge, Starts, Tracked = (), Init = (), Fold = ()> { /* private fields */ }
Expand description

Struct to track metadat for a traversal operation.

Trait Implementations§

source§

impl<'a, 'w, 's, D, RS, F, Edge, Starts> FoldBreadth<RS> for TraverseAnd<&'a Query<'w, 's, (D, Relations<RS>), F>, Edge, Starts, SelfTracking>
where D: QueryData, F: QueryFilter, RS: RelationSet,

§

type WQ<'wq> = <<D as QueryData>::ReadOnly as WorldQuery>::Item<'wq>

§

type Out<Init, Fold> = TraverseAnd<&'a Query<'w, 's, (D, Relations<RS>), F>, Edge, Starts, SelfTracking, Init, Fold>

source§

fn fold_breadth<Acc, E, Init, Fold>( self, init: Init, fold: Fold ) -> Self::Out<Init, Fold>
where Init: FnMut(&mut Self::WQ<'_>, &RelationsItem<'_, RS>) -> Acc, Fold: FnMut(Acc, &mut Self::WQ<'_>, &RelationsItem<'_, RS>) -> Result<Acc, E>,

source§

impl<'a, 'w, 's, D, RS, F, Edge, Starts> FoldBreadth<RS> for TraverseAnd<&'a mut Query<'w, 's, (D, Relations<RS>), F>, Edge, Starts, SelfTracking>
where D: QueryData, F: QueryFilter, RS: RelationSet,

§

type WQ<'wq> = <D as WorldQuery>::Item<'wq>

§

type Out<Init, Fold> = TraverseAnd<&'a mut Query<'w, 's, (D, Relations<RS>), F>, Edge, Starts, SelfTracking, Init, Fold>

source§

fn fold_breadth<Acc, E, Init, Fold>( self, init: Init, fold: Fold ) -> Self::Out<Init, Fold>
where Init: FnMut(&mut Self::WQ<'_>, &RelationsItem<'_, RS>) -> Acc, Fold: FnMut(Acc, &mut Self::WQ<'_>, &RelationsItem<'_, RS>) -> Result<Acc, E>,

source§

impl<D, RS, F, Edge, E, Starts, Init, Fold, Acc, Err> FoldingSelfTrackingTraversalForEach<RS> for TraverseAnd<&Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, SelfTracking, Init, Fold>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries, Init: for<'a> FnMut(&mut <D::ReadOnly as WorldQuery>::Item<'a>, &RelationsItem<'a, RS>) -> Acc, Fold: for<'a> FnMut(Acc, &mut <D::ReadOnly as WorldQuery>::Item<'a>, &RelationsItem<'a, RS>) -> Result<Acc, Err>,

§

type WQ<'wq> = <<D as QueryData>::ReadOnly as WorldQuery>::Item<'wq>

§

type Res = Result<Acc, Err>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::Res, &mut Self::WQ<'a>, &RelationsItem<'a, RS>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts, Init, Fold, Acc, Err> FoldingSelfTrackingTraversalForEach<RS> for TraverseAnd<&mut Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, SelfTracking, Init, Fold>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries, Init: for<'a> FnMut(&mut <D as WorldQuery>::Item<'a>, &RelationsItem<'a, RS>) -> Acc, Fold: for<'a> FnMut(Acc, &mut <D as WorldQuery>::Item<'a>, &RelationsItem<'a, RS>) -> Result<Acc, Err>,

§

type WQ<'wq> = <D as WorldQuery>::Item<'wq>

§

type Res = Result<Acc, Err>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::Res, &mut Self::WQ<'a>, &RelationsItem<'a, RS>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts, Tracked, const N: usize> RemoteTrackingTraversalForEach<RS, N> for TraverseAnd<&Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, Tracked>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries, Tracked: for<'a> Trackable<'a, N>,

§

type WQ<'wq> = <<D as QueryData>::ReadOnly as WorldQuery>::Item<'wq>

§

type Tracked<'t> = <Tracked as Trackable<'t, N>>::Out

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'t, 'a> FnMut(Self::Tracked<'t>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts, Tracked, const N: usize> RemoteTrackingTraversalForEach<RS, N> for TraverseAnd<&mut Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, Tracked>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries, Tracked: for<'a> Trackable<'a, N>,

§

type WQ<'wq> = <D as WorldQuery>::Item<'wq>

§

type Tracked<'t> = <Tracked as Trackable<'t, N>>::Out

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'t, 'a> FnMut(Self::Tracked<'t>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts> SelfTrackingTraversalForEach<RS> for TraverseAnd<&Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, SelfTracking>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries,

§

type WQ<'wq> = <<D as QueryData>::ReadOnly as WorldQuery>::Item<'wq>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::WQ<'a>, &RelationsItem<'a, RS>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts> SelfTrackingTraversalForEach<RS> for TraverseAnd<&mut Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts, SelfTracking>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries,

§

type WQ<'wq> = <D as WorldQuery>::Item<'wq>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::WQ<'a>, &RelationsItem<'a, RS>, &mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<Control, Edge, Starts, Tracked> Track for TraverseAnd<Control, Edge, Starts, Tracked>
where Tracked: Append,

§

type Out<Item> = TraverseAnd<Control, Edge, Starts, <Tracked as Append>::Out<Item>>

source§

fn track<Item>(self, item: Item) -> Self::Out<Item>
where Item: for<'a> Trackable<'a, 1>,

source§

impl<Control, Edge, Starts> TrackSelf for TraverseAnd<Control, Edge, Starts>

§

type Out = TraverseAnd<Control, Edge, Starts, SelfTracking>

source§

fn track_self(self) -> Self::Out

source§

impl<D, RS, F, Edge, E, Starts> TraversalForEach<RS> for TraverseAnd<&Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries,

§

type WQ<'wq> = <<D as QueryData>::ReadOnly as WorldQuery>::Item<'wq>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

source§

impl<D, RS, F, Edge, E, Starts> TraversalForEach<RS> for TraverseAnd<&mut Query<'_, '_, (D, Relations<RS>), F>, Edge, Starts>
where D: QueryData, RS: RelationSet, F: QueryFilter, Edge: EdgeSide, E: Borrow<Entity>, Starts: IntoIterator<Item = E>, for<'i> RelationsItem<'i, RS>: RelationEntries,

§

type WQ<'wq> = <D as WorldQuery>::Item<'wq>

source§

fn for_each<Func, Ret>(self, func: Func)
where Ret: Into<TCF>, Func: for<'a> FnMut(&mut Self::WQ<'a>, &RelationsItem<'a, RS>) -> Ret,

Auto Trait Implementations§

§

impl<Control, Edge, Starts, Tracked, Init, Fold> RefUnwindSafe for TraverseAnd<Control, Edge, Starts, Tracked, Init, Fold>
where Control: RefUnwindSafe, Edge: RefUnwindSafe, Fold: RefUnwindSafe, Init: RefUnwindSafe, Starts: RefUnwindSafe, Tracked: RefUnwindSafe,

§

impl<Control, Edge, Starts, Tracked, Init, Fold> Send for TraverseAnd<Control, Edge, Starts, Tracked, Init, Fold>
where Control: Send, Edge: Send, Fold: Send, Init: Send, Starts: Send, Tracked: Send,

§

impl<Control, Edge, Starts, Tracked, Init, Fold> Sync for TraverseAnd<Control, Edge, Starts, Tracked, Init, Fold>
where Control: Sync, Edge: Sync, Fold: Sync, Init: Sync, Starts: Sync, Tracked: Sync,

§

impl<Control, Edge, Starts, Tracked, Init, Fold> Unpin for TraverseAnd<Control, Edge, Starts, Tracked, Init, Fold>
where Control: Unpin, Edge: Unpin, Fold: Unpin, Init: Unpin, Starts: Unpin, Tracked: Unpin,

§

impl<Control, Edge, Starts, Tracked, Init, Fold> UnwindSafe for TraverseAnd<Control, Edge, Starts, Tracked, Init, Fold>
where Control: UnwindSafe, Edge: UnwindSafe, Fold: UnwindSafe, Init: UnwindSafe, Starts: UnwindSafe, Tracked: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> Downcast for T
where T: Any,

§

fn into_any(self: Box<T>) -> Box<dyn Any>

Convert 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.
§

fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>

Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be further downcast into Rc<ConcreteType> where ConcreteType implements Trait.
§

fn as_any(&self) -> &(dyn Any + 'static)

Convert &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)

Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot generate &mut Any’s vtable from &mut Trait’s.
§

impl<T> DowncastSync for T
where T: Any + Send + Sync,

§

fn into_any_arc(self: Arc<T>) -> Arc<dyn Any + Sync + Send>

Convert Arc<Trait> (where Trait: Downcast) to Arc<Any>. Arc<Any> can then be further downcast into Arc<ConcreteType> where ConcreteType implements Trait.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> ZstOrPanic for T