pub struct InventoryRowView {
pub depth: usize,
pub text: String,
pub title: String,
pub mass_kg: Option<f32>,
pub volume: Option<(f32, f32)>,
}Expand description
Formatted inventory row text shared by TUI and gfx browsers.
Fields§
§depth: usize§text: StringDense single-line label (legacy / TUI).
title: StringPrimary label for redesigned gfx rows (name, qty, optional #id / slot).
mass_kg: Option<f32>§volume: Option<(f32, f32)>Trait Implementations§
Source§impl Clone for InventoryRowView
impl Clone for InventoryRowView
Source§fn clone(&self) -> InventoryRowView
fn clone(&self) -> InventoryRowView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InventoryRowView
impl RefUnwindSafe for InventoryRowView
impl Send for InventoryRowView
impl Sync for InventoryRowView
impl Unpin for InventoryRowView
impl UnsafeUnpin for InventoryRowView
impl UnwindSafe for InventoryRowView
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