pub struct MapSettings {
pub dropdown: bool,
pub insertable: bool,
pub removable: bool,
pub use_table: bool,
pub columns: usize,
}Expand description
Settings controlling how string-keyed maps like HashMap<String, V> and
BTreeMap<String, V> are edited.
Fields§
§dropdown: boolWhether the map contents are wrapped in a collapsible tree node.
insertable: boolWhether insertion of new entries is allowed (via + button).
removable: boolWhether removal of entries is allowed (via - button next to each row).
use_table: boolWhether entries are rendered inside an ImGui table for better alignment.
columns: usizeNumber of columns to use when use_table is true (at least 3).
The first column is reserved for the row handle/context menu, the second for the key, and the third for the value. Larger values widen the table but currently do not change semantics.
Implementations§
Source§impl MapSettings
impl MapSettings
Trait Implementations§
Source§impl Clone for MapSettings
impl Clone for MapSettings
Source§fn clone(&self) -> MapSettings
fn clone(&self) -> MapSettings
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MapSettings
impl Debug for MapSettings
Auto Trait Implementations§
impl Freeze for MapSettings
impl RefUnwindSafe for MapSettings
impl Send for MapSettings
impl Sync for MapSettings
impl Unpin for MapSettings
impl UnwindSafe for MapSettings
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