Struct oc_wasm_opencomputers::common::Fluid  
source · pub struct Fluid<'buffer> {
    pub name: &'buffer str,
    pub label: &'buffer str,
    pub amount: NonZero<u32>,
    pub has_tag: bool,
}Expand description
Information about a fluid.
The 'buffer lifetime is the lifetime of the buffer holding strings to which the object
refers.
Fields§
§name: &'buffer strThe internal (Minecraft system) name of the item.
For example, this might be water.
label: &'buffer strThe human-readable name of the item.
For example, this might be Water.
amount: NonZero<u32>The number of millibuckets of fluid in the container.
has_tag: boolWhether the fluid has extra NBT data attached.
Trait Implementations§
source§impl<'buffer> Ord for Fluid<'buffer>
 
impl<'buffer> Ord for Fluid<'buffer>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
    Self: Sized,
 
fn max(self, other: Self) -> Selfwhere
    Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'buffer> PartialEq for Fluid<'buffer>
 
impl<'buffer> PartialEq for Fluid<'buffer>
source§impl<'buffer> PartialOrd for Fluid<'buffer>
 
impl<'buffer> PartialOrd for Fluid<'buffer>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl<'buffer> Eq for Fluid<'buffer>
impl<'buffer> StructuralPartialEq for Fluid<'buffer>
Auto Trait Implementations§
impl<'buffer> Freeze for Fluid<'buffer>
impl<'buffer> RefUnwindSafe for Fluid<'buffer>
impl<'buffer> Send for Fluid<'buffer>
impl<'buffer> Sync for Fluid<'buffer>
impl<'buffer> Unpin for Fluid<'buffer>
impl<'buffer> UnwindSafe for Fluid<'buffer>
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