#[non_exhaustive]pub struct TankPressure {
pub tank: usize,
pub pressure: Pressure,
}Expand description
A tank pressure reading.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tank: usizeIndex into Dive::tanks.
pressure: PressureThe pressure.
Implementations§
Trait Implementations§
Source§impl Clone for TankPressure
impl Clone for TankPressure
impl Copy for TankPressure
Source§impl Debug for TankPressure
impl Debug for TankPressure
Source§impl PartialEq for TankPressure
impl PartialEq for TankPressure
impl StructuralPartialEq for TankPressure
Auto Trait Implementations§
impl Forget for TankPressure
impl Freeze for TankPressure
impl Move for TankPressure
impl RefUnwindSafe for TankPressure
impl Send for TankPressure
impl Sync for TankPressure
impl Unpin for TankPressure
impl UnsafeUnpin for TankPressure
impl UnwindSafe for TankPressure
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