pub struct SkeletonLineChart<'a> { /* private fields */ }Expand description
Skeleton line chart rendered with braille traces over filled area.
Generates deterministic sine-wave paths that drift over time,
rendered as braille dot traces with solid █ fill below each
line. The filled area makes skeleton animations (Breathe, Sweep,
Plasma) clearly visible, while the braille edge gives the chart
its line-chart silhouette.
Implementations§
Source§impl<'a> SkeletonLineChart<'a>
impl<'a> SkeletonLineChart<'a>
pub fn new(elapsed_ms: u64) -> Self
Sourcepub fn drift_ms(self, drift_ms: u64) -> Self
pub fn drift_ms(self, drift_ms: u64) -> Self
Override the timestamp used for wave drift.
When set, the wave shape is computed from this fixed value
while color animation still uses elapsed_ms. Pass 0 to
freeze the wave in place.
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 filled(self, filled: bool) -> Self
pub fn filled(self, filled: bool) -> Self
Fill the area below each line with █. Default: true.
When enabled, the filled region carries the skeleton animation (Breathe/Sweep/Plasma) while the braille trace sits on top as the edge. Disable for line-only rendering.
pub fn block(self, block: Block<'a>) -> Self
Trait Implementations§
Source§impl<'a> Clone for SkeletonLineChart<'a>
impl<'a> Clone for SkeletonLineChart<'a>
Source§fn clone(&self) -> SkeletonLineChart<'a>
fn clone(&self) -> SkeletonLineChart<'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 SkeletonLineChart<'a>
impl<'a> Debug for SkeletonLineChart<'a>
Auto Trait Implementations§
impl<'a> Freeze for SkeletonLineChart<'a>
impl<'a> RefUnwindSafe for SkeletonLineChart<'a>
impl<'a> Send for SkeletonLineChart<'a>
impl<'a> Sync for SkeletonLineChart<'a>
impl<'a> Unpin for SkeletonLineChart<'a>
impl<'a> UnsafeUnpin for SkeletonLineChart<'a>
impl<'a> UnwindSafe for SkeletonLineChart<'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