pub struct SkeletonBarChart<'a> { /* private fields */ }Expand description
Skeleton vertical bar chart with bars of varying height.
Renders columns of █ rising from the bottom of the area,
separated by single-cell gaps. Heights cycle deterministically.
Implementations§
Source§impl<'a> SkeletonBarChart<'a>
impl<'a> SkeletonBarChart<'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 heights(self, heights: &'a [f32]) -> Self
pub fn heights(self, heights: &'a [f32]) -> Self
Override the per-bar height fractions (0.0..=1.0).
The pattern cycles when there are more bars than entries.
pub fn block(self, block: Block<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for SkeletonBarChart<'a>
impl<'a> Clone for SkeletonBarChart<'a>
Source§fn clone(&self) -> SkeletonBarChart<'a>
fn clone(&self) -> SkeletonBarChart<'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 SkeletonBarChart<'a>
impl<'a> Debug for SkeletonBarChart<'a>
Auto Trait Implementations§
impl<'a> Freeze for SkeletonBarChart<'a>
impl<'a> RefUnwindSafe for SkeletonBarChart<'a>
impl<'a> Send for SkeletonBarChart<'a>
impl<'a> Sync for SkeletonBarChart<'a>
impl<'a> Unpin for SkeletonBarChart<'a>
impl<'a> UnsafeUnpin for SkeletonBarChart<'a>
impl<'a> UnwindSafe for SkeletonBarChart<'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