pub enum Product {
ItemProduct(ItemProduct),
FluidProduct(FluidProduct),
}Expand description
Returns one of the subtypes, depending on the value of type.
Variants§
ItemProduct(ItemProduct)
FluidProduct(FluidProduct)
Trait Implementations§
impl Copy for Product
Source§impl From<FluidProduct> for Product
impl From<FluidProduct> for Product
Source§fn from(value: FluidProduct) -> Self
fn from(value: FluidProduct) -> Self
Converts to this type from the input type.
Source§impl From<ItemProduct> for Product
impl From<ItemProduct> for Product
Source§fn from(value: ItemProduct) -> Self
fn from(value: ItemProduct) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Product
Auto Trait Implementations§
impl Freeze for Product
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnsafeUnpin for Product
impl UnwindSafe for Product
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