pub struct SystemGraph { /* private fields */ }
Expand description
A builder for creating graphs of dependent parallel execution within a SystemStage
.
Please see the crate level docs for examples on how to use this type.
This type implements Clone
by wrapping a Rc
and can be safely
clone and still have the clone refer to the same underlying graph.
Implementations§
Source§impl SystemGraph
impl SystemGraph
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new, empty SystemGraph
.
Sourcepub fn root<Params>(
&self,
system: impl IntoSystemDescriptor<Params>,
) -> SystemGraphNode
pub fn root<Params>( &self, system: impl IntoSystemDescriptor<Params>, ) -> SystemGraphNode
Creates a new SystemGraph
with specific graph ID.
Should be exclusively for testing purposes.
Creates a root graph node without any dependencies. A graph can have multiple distinct
root nodes.
Sourcepub fn is_same_graph(&self, other: &Self) -> bool
pub fn is_same_graph(&self, other: &Self) -> bool
Checks if two graphs instances point to the same logical underlying graph.
Trait Implementations§
Source§impl Clone for SystemGraph
impl Clone for SystemGraph
Source§fn clone(&self) -> SystemGraph
fn clone(&self) -> SystemGraph
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for SystemGraph
impl Default for SystemGraph
Source§impl From<SystemGraph> for SystemSet
A draining conversion to SystemSet
. All other clones of the same graph will be empty
afterwards.
impl From<SystemGraph> for SystemSet
A draining conversion to SystemSet
. All other clones of the same graph will be empty
afterwards.
Source§fn from(graph: SystemGraph) -> Self
fn from(graph: SystemGraph) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SystemGraph
impl !RefUnwindSafe for SystemGraph
impl !Send for SystemGraph
impl !Sync for SystemGraph
impl Unpin for SystemGraph
impl !UnwindSafe for SystemGraph
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
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>
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
.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
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
.Source§fn as_any(&self) -> &(dyn Any + 'static)
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.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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.Source§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
Source§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given World