pub struct TupleSettings {
pub dropdown: bool,
pub render_mode: TupleRenderMode,
pub columns: usize,
pub same_line: bool,
pub min_width: Option<f32>,
}Expand description
Settings controlling how tuple-like values such as (A, B) and (A, B, C)
are rendered.
Fields§
§dropdown: boolWhether the tuple contents are wrapped in a collapsible tree node.
render_mode: TupleRenderModeHow tuple elements are laid out: line or grid.
columns: usizeNumber of columns to use in grid mode (clamped to at least 1 and at most the number of tuple elements).
same_line: boolWhether the outer label is rendered on the same line as the tuple contents (line mode) or above them.
min_width: Option<f32>Optional minimum width for each element when rendered in grid mode.
Trait Implementations§
Source§impl Clone for TupleSettings
impl Clone for TupleSettings
Source§fn clone(&self) -> TupleSettings
fn clone(&self) -> TupleSettings
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 TupleSettings
impl Debug for TupleSettings
Auto Trait Implementations§
impl Freeze for TupleSettings
impl RefUnwindSafe for TupleSettings
impl Send for TupleSettings
impl Sync for TupleSettings
impl Unpin for TupleSettings
impl UnwindSafe for TupleSettings
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