pub struct Bundle<Content, const AMOUNT: u32>where
Content: ResourceType,{ /* private fields */ }Expand description
Contains a fixed (compile-time known) amount of a resource.
A Bundle can be used to build structures or as input for recipes.
Implementations§
Source§impl<Content, const AMOUNT: u32> Bundle<Content, AMOUNT>where
Content: ResourceType,
impl<Content, const AMOUNT: u32> Bundle<Content, AMOUNT>where
Content: ResourceType,
Trait Implementations§
Source§impl<Content, const AMOUNT: u32> Add<Bundle<Content, AMOUNT>> for Resource<Content>where
Content: ResourceType,
impl<Content, const AMOUNT: u32> Add<Bundle<Content, AMOUNT>> for Resource<Content>where
Content: ResourceType,
Source§impl<Content, const AMOUNT_LHS: u32, const AMOUNT_RHS: u32> Add<Bundle<Content, AMOUNT_RHS>> for Bundle<Content, AMOUNT_LHS>where
Content: ResourceType,
impl<Content, const AMOUNT_LHS: u32, const AMOUNT_RHS: u32> Add<Bundle<Content, AMOUNT_RHS>> for Bundle<Content, AMOUNT_LHS>where
Content: ResourceType,
Source§impl<Content, const AMOUNT: u32> Add<Resource<Content>> for Bundle<Content, AMOUNT>where
Content: ResourceType,
impl<Content, const AMOUNT: u32> Add<Resource<Content>> for Bundle<Content, AMOUNT>where
Content: ResourceType,
Source§impl<Content, const AMOUNT: u32> AddAssign<Bundle<Content, AMOUNT>> for Resource<Content>where
Content: ResourceType,
impl<Content, const AMOUNT: u32> AddAssign<Bundle<Content, AMOUNT>> for Resource<Content>where
Content: ResourceType,
Source§fn add_assign(&mut self, bundle: Bundle<Content, AMOUNT>)
fn add_assign(&mut self, bundle: Bundle<Content, AMOUNT>)
Performs the
+= operation. Read moreAuto Trait Implementations§
impl<Content, const AMOUNT: u32> Freeze for Bundle<Content, AMOUNT>
impl<Content, const AMOUNT: u32> RefUnwindSafe for Bundle<Content, AMOUNT>where
Content: RefUnwindSafe,
impl<Content, const AMOUNT: u32> Send for Bundle<Content, AMOUNT>where
Content: Send,
impl<Content, const AMOUNT: u32> Sync for Bundle<Content, AMOUNT>where
Content: Sync,
impl<Content, const AMOUNT: u32> Unpin for Bundle<Content, AMOUNT>where
Content: Unpin,
impl<Content, const AMOUNT: u32> UnwindSafe for Bundle<Content, AMOUNT>where
Content: UnwindSafe,
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