pub struct RelatedResolvedScenes {
pub scenes: Vec<ResolvedScene>,
pub insert_relationship: unsafe fn(_: &mut BundleWriter<'_>, _: &mut ComponentsRegistrator<'_>, target: Entity),
pub insert_relationship_target: unsafe fn(&mut BundleWriter<'_>, &mut ComponentsRegistrator<'_>, usize),
pub relationship_name: &'static str,
}Expand description
A collection of ResolvedScenes that are related to a given ResolvedScene by a Relationship.
Each ResolvedScene added here will be spawned as a new Entity when the “parent” ResolvedScene is spawned.
Fields§
§scenes: Vec<ResolvedScene>The related resolved scenes. Each entry in the list corresponds to a new related entity that will be spawned with the given scene.
insert_relationship: unsafe fn(_: &mut BundleWriter<'_>, _: &mut ComponentsRegistrator<'_>, target: Entity)The function that will be called to add the relationship to the spawned related scene.
insert_relationship_target: unsafe fn(&mut BundleWriter<'_>, &mut ComponentsRegistrator<'_>, usize)The function that will be called to add the relationship target to the spawned scene with the given capacity.
relationship_name: &'static strThe type name of the relationship. This is used for more helpful error message.
Implementations§
Source§impl RelatedResolvedScenes
impl RelatedResolvedScenes
Sourcepub fn new<R: Relationship>() -> Self
pub fn new<R: Relationship>() -> Self
Creates a new empty RelatedResolvedScenes for the given relationship type.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RelatedResolvedScenes
impl !Unpin for RelatedResolvedScenes
impl !UnwindSafe for RelatedResolvedScenes
impl Freeze for RelatedResolvedScenes
impl Send for RelatedResolvedScenes
impl Sync for RelatedResolvedScenes
impl UnsafeUnpin for RelatedResolvedScenes
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
impl<T> ConditionalSend for Twhere
T: Send,
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, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
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> IntoResult<T> for T
impl<T> IntoResult<T> for T
Source§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.