[−][src]Struct specs_scene_graph::SceneGraph
Methods
impl<P> SceneGraph<P>
[src]
pub fn new(reader_id: ReaderId<ComponentEvent>) -> Self
[src]
pub fn all(&self) -> &[Entity]
[src]
pub fn children(&self, entity: Entity) -> &[Entity]
[src]
pub fn parent(&self, entity: Entity) -> Option<Entity>
[src]
pub fn track(&mut self) -> ReaderId<Event>
[src]
pub fn changed(&self) -> &EventChannel<Event>
[src]
impl<P> SceneGraph<P> where
P: Parent,
P::Storage: Tracked + Default,
[src]
P: Parent,
P::Storage: Tracked + Default,
pub fn maintain<'system>(
&mut self,
entities: Entities<'system>,
parents: ReadStorage<'system, P>
)
[src]
&mut self,
entities: Entities<'system>,
parents: ReadStorage<'system, P>
)
Trait Implementations
impl<P> SetupHandler<SceneGraph<P>> for SceneGraphSetupHandler<P> where
P: Parent,
P::Storage: Default + Tracked,
[src]
P: Parent,
P::Storage: Default + Tracked,
Auto Trait Implementations
impl<P> Send for SceneGraph<P> where
P: Send,
P: Send,
impl<P> Unpin for SceneGraph<P> where
P: Unpin,
P: Unpin,
impl<P> Sync for SceneGraph<P> where
P: Sync,
P: Sync,
impl<P> !UnwindSafe for SceneGraph<P>
impl<P> !RefUnwindSafe for SceneGraph<P>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Resource for T where
T: Any + Send + Sync,
[src]
T: Any + Send + Sync,
impl<T> Any for T where
T: Any,
T: Any,
fn get_type_id(&self) -> TypeId
impl<T> Event for T where
T: Send + Sync + 'static,
[src]
T: Send + Sync + 'static,