pub struct ComponentTypes { /* private fields */ }Expand description
Details a set of types within a component.
Implementations§
Source§impl ComponentTypes
impl ComponentTypes
Sourcepub fn root(&self) -> &ComponentTypesInstance
pub fn root(&self) -> &ComponentTypesInstance
Gets the root instance.
Sourcepub fn instance(
&self,
name: &InterfaceIdentifier,
) -> Option<&ComponentTypesInstance>
pub fn instance( &self, name: &InterfaceIdentifier, ) -> Option<&ComponentTypesInstance>
Gets the instance with the specified name, if any.
Sourcepub fn instances(
&self,
) -> impl Iterator<Item = (&InterfaceIdentifier, &ComponentTypesInstance)>
pub fn instances( &self, ) -> impl Iterator<Item = (&InterfaceIdentifier, &ComponentTypesInstance)>
Gets an iterator over all instances by identifier.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentTypes
impl !RefUnwindSafe for ComponentTypes
impl Send for ComponentTypes
impl Sync for ComponentTypes
impl Unpin for ComponentTypes
impl !UnwindSafe for ComponentTypes
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