pub enum InventoryBrowserLine {
Section(String),
SlotLabel(String),
Hint(String),
Blank,
Item {
selectable_index: usize,
selected: bool,
depth: usize,
text: String,
title: String,
mass_kg: Option<f32>,
volume: Option<(f32, f32)>,
},
}Expand description
One line in the sectioned inventory browser (headers are non-selectable).
Variants§
Trait Implementations§
Source§impl Clone for InventoryBrowserLine
impl Clone for InventoryBrowserLine
Source§fn clone(&self) -> InventoryBrowserLine
fn clone(&self) -> InventoryBrowserLine
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 InventoryBrowserLine
impl RefUnwindSafe for InventoryBrowserLine
impl Send for InventoryBrowserLine
impl Sync for InventoryBrowserLine
impl Unpin for InventoryBrowserLine
impl UnsafeUnpin for InventoryBrowserLine
impl UnwindSafe for InventoryBrowserLine
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