pub struct BundleInfo { /* private fields */ }
Implementations§
Source§impl BundleInfo
impl BundleInfo
Sourcepub fn explicit_components(&self) -> &[ComponentId]
pub fn explicit_components(&self) -> &[ComponentId]
Returns the ID of each component explicitly defined in this bundle (ex: Required Components are excluded).
For all components contributed by this bundle (including Required Components), see BundleInfo::contributed_components
Sourcepub fn required_components(&self) -> &[ComponentId]
pub fn required_components(&self) -> &[ComponentId]
Returns the ID of each Required Component needed by this bundle. This does not include Required Components that are explicitly provided by the bundle.
Sourcepub fn contributed_components(&self) -> &[ComponentId]
pub fn contributed_components(&self) -> &[ComponentId]
Returns the ID of each component contributed by this bundle. This includes Required Components.
For only components explicitly defined in this bundle, see BundleInfo::explicit_components
Sourcepub fn iter_explicit_components(
&self,
) -> impl Iterator<Item = ComponentId> + Clone + '_
pub fn iter_explicit_components( &self, ) -> impl Iterator<Item = ComponentId> + Clone + '_
Returns an iterator over the ID of each component explicitly defined in this bundle (ex: this excludes Required Components).
To iterate all components contributed by this bundle (including Required Components), see BundleInfo::iter_contributed_components
Sourcepub fn iter_contributed_components(
&self,
) -> impl Iterator<Item = ComponentId> + Clone + '_
pub fn iter_contributed_components( &self, ) -> impl Iterator<Item = ComponentId> + Clone + '_
Returns an iterator over the ID of each component contributed by this bundle. This includes Required Components.
To iterate only components explicitly defined in this bundle, see BundleInfo::iter_explicit_components
Sourcepub fn iter_required_components(&self) -> impl Iterator<Item = ComponentId> + '_
pub fn iter_required_components(&self) -> impl Iterator<Item = ComponentId> + '_
Returns an iterator over the ID of each Required Component needed by this bundle. This does not include Required Components that are explicitly provided by the bundle.
Auto Trait Implementations§
impl Freeze for BundleInfo
impl !RefUnwindSafe for BundleInfo
impl !Send for BundleInfo
impl !Sync for BundleInfo
impl Unpin for BundleInfo
impl !UnwindSafe for BundleInfo
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
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>
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>
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)
&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)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.