Struct oc_wasm_opencomputers::common::Tank
source · pub struct Tank<'buffer> {
pub fluid: Option<Fluid<'buffer>>,
pub capacity: u32,
}Expand description
Information about a fluid tank.
The 'buffer lifetime is the lifetime of the buffer holding strings to which the object
refers.
Fields§
§fluid: Option<Fluid<'buffer>>The fluid contained in the tank, if any.
capacity: u32The maximum number of millibuckets the tank can hold.
Trait Implementations§
source§impl<'buffer> Ord for Tank<'buffer>
impl<'buffer> Ord for Tank<'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 Tank<'buffer>
impl<'buffer> PartialEq for Tank<'buffer>
source§impl<'buffer> PartialOrd for Tank<'buffer>
impl<'buffer> PartialOrd for Tank<'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 Tank<'buffer>
impl<'buffer> StructuralPartialEq for Tank<'buffer>
Auto Trait Implementations§
impl<'buffer> Freeze for Tank<'buffer>
impl<'buffer> RefUnwindSafe for Tank<'buffer>
impl<'buffer> Send for Tank<'buffer>
impl<'buffer> Sync for Tank<'buffer>
impl<'buffer> Unpin for Tank<'buffer>
impl<'buffer> UnwindSafe for Tank<'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