pub struct Debug<Upstream>where
Upstream: SignalMap,{ /* private fields */ }
Expand description
Signal graph node that debug logs its upstream’s “raw” Vec<MapDiff>
s, see
.debug
.
Trait Implementations§
Source§impl<Upstream> SignalMap for Debug<Upstream>where
Upstream: SignalMap,
impl<Upstream> SignalMap for Debug<Upstream>where
Upstream: SignalMap,
Auto Trait Implementations§
impl<Upstream> Freeze for Debug<Upstream>where
Upstream: Freeze,
impl<Upstream> RefUnwindSafe for Debug<Upstream>where
Upstream: RefUnwindSafe,
impl<Upstream> Send for Debug<Upstream>
impl<Upstream> Sync for Debug<Upstream>
impl<Upstream> Unpin for Debug<Upstream>where
Upstream: Unpin,
impl<Upstream> UnwindSafe for Debug<Upstream>where
Upstream: UnwindSafe,
Blanket Implementations§
Source§impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
impl<T, Res> Apply<Res> for Twhere
T: ?Sized,
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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)
Converts
&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)
Converts
&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> 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> SignalMapExt for T
impl<T> SignalMapExt for T
Source§fn for_each<O, IOO, F, M>(self, system: F) -> ForEach<Self, O>
fn for_each<O, IOO, F, M>(self, system: F) -> ForEach<Self, O>
Pass the “raw”
Vec<MapDiff<Self::Key, Self::Value>>
output of this SignalMap
to a
System
, continuing propagation if the System
returns Some
or terminating for the
frame if it returns None
. This transforms the SignalMap
into a Signal
. Unlike most
other SignalMap
methods, .for_each
, returns a Signal
,
not a SignalMap
, since the output type need not be an Option<Vec<MapDiff>>
. If the
System
logic is infallible, wrapping the result in an option is unnecessary.Source§fn map_value_signal<S, F, M>(self, system: F) -> MapValueSignal<Self, S>
fn map_value_signal<S, F, M>(self, system: F) -> MapValueSignal<Self, S>
Source§fn register(self, world: &mut World) -> SignalHandlewhere
Self: Sized,
fn register(self, world: &mut World) -> SignalHandlewhere
Self: Sized,
Activate this
SignalMap
and all its upstreams, causing them to be evaluated every frame
until they are SignalHandle::cleanup
-ed, see SignalHandle
.