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.