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: u32
The 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> PartialOrd for Tank<'buffer>
impl<'buffer> PartialOrd for Tank<'buffer>
impl<'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