pub struct SkeletonKvTable<'a> { /* private fields */ }Expand description
Skeleton key-value table (properties panel / detail view).
Renders pairs of short fixed-width keys on the left and
variable-width values on the right, separated by a dim │.
Each pair occupies one row with a gap row between pairs.
Implementations§
Source§impl<'a> SkeletonKvTable<'a>
impl<'a> SkeletonKvTable<'a>
pub fn new(elapsed_ms: u64) -> Self
pub fn mode(self, mode: AnimationMode) -> Self
pub fn braille(self, braille: bool) -> Self
pub fn base(self, color: impl Into<Color>) -> Self
pub fn highlight(self, color: impl Into<Color>) -> Self
Sourcepub fn key_width(self, width: u16) -> Self
pub fn key_width(self, width: u16) -> Self
Fixed width of the key column in cells. Default: 12.
Sourcepub fn value_widths(self, widths: &'a [f32]) -> Self
pub fn value_widths(self, widths: &'a [f32]) -> Self
Per-pair value width fractions (0.0..=1.0) of the remaining space.
The pattern cycles when there are more pairs than entries.
pub fn block(self, block: Block<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for SkeletonKvTable<'a>
impl<'a> Clone for SkeletonKvTable<'a>
Source§fn clone(&self) -> SkeletonKvTable<'a>
fn clone(&self) -> SkeletonKvTable<'a>
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<'a> Debug for SkeletonKvTable<'a>
impl<'a> Debug for SkeletonKvTable<'a>
Auto Trait Implementations§
impl<'a> Freeze for SkeletonKvTable<'a>
impl<'a> RefUnwindSafe for SkeletonKvTable<'a>
impl<'a> Send for SkeletonKvTable<'a>
impl<'a> Sync for SkeletonKvTable<'a>
impl<'a> Unpin for SkeletonKvTable<'a>
impl<'a> UnsafeUnpin for SkeletonKvTable<'a>
impl<'a> UnwindSafe for SkeletonKvTable<'a>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more