pub struct ContainerCollection(/* private fields */);Expand description
Wraps a tree of nodes that contain the bindings.
Can be build from a BindingsRegistry by calling BindingsRegistry::into_entries().
Implementations§
Source§impl ContainerCollection
impl ContainerCollection
Sourcepub fn flatten(&mut self)
pub fn flatten(&mut self)
Removes all module nodes and moves their children to the root node.
Can be used to remove the module hierarchy.
pub fn all_containers(&self) -> impl Iterator<Item = Container> + Clone + '_
pub fn containers_per_module(&self) -> (Vec<Container>, Vec<Module<'_>>)
Trait Implementations§
Source§impl Clone for ContainerCollection
impl Clone for ContainerCollection
Source§fn clone(&self) -> ContainerCollection
fn clone(&self) -> ContainerCollection
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ContainerCollection
impl !RefUnwindSafe for ContainerCollection
impl !Send for ContainerCollection
impl !Sync for ContainerCollection
impl Unpin for ContainerCollection
impl !UnwindSafe for ContainerCollection
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