pub struct InventoryBuilder { /* private fields */ }Expand description
Builder for Inventory.
Implementations§
Source§impl InventoryBuilder
impl InventoryBuilder
Sourcepub fn network(
self,
code: impl Into<String>,
f: impl FnOnce(NetworkBuilder) -> NetworkBuilder,
) -> Self
pub fn network( self, code: impl Into<String>, f: impl FnOnce(NetworkBuilder) -> NetworkBuilder, ) -> Self
Add a network using a closure-based builder.
Auto Trait Implementations§
impl Freeze for InventoryBuilder
impl RefUnwindSafe for InventoryBuilder
impl Send for InventoryBuilder
impl Sync for InventoryBuilder
impl Unpin for InventoryBuilder
impl UnsafeUnpin for InventoryBuilder
impl UnwindSafe for InventoryBuilder
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