pub struct SparklineBar { /* private fields */ }
Expand description
An bar in a Sparkline
.
The height of the bar is determined by the value and a value of None
is interpreted as the
absence of a value, as distinct from a value of Some(0)
.
Implementations§
Source§impl SparklineBar
impl SparklineBar
Sourcepub fn style<S: Into<Option<Style>>>(self, style: S) -> Self
pub fn style<S: Into<Option<Style>>>(self, style: S) -> Self
Sets the style of the bar.
style
accepts any type that is convertible to Style
(e.g. Style
, Color
, or
your own type that implements Into<Style>
).
If not set, the default style of the sparkline will be used.
As well as the style of the sparkline, each SparklineBar
may optionally set its own
style. If set, the style of the bar will be the style of the sparkline combined with
the style of the bar.
Trait Implementations§
Source§impl Clone for SparklineBar
impl Clone for SparklineBar
Source§fn clone(&self) -> SparklineBar
fn clone(&self) -> SparklineBar
Returns a copy 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 SparklineBar
impl Debug for SparklineBar
Source§impl Default for SparklineBar
impl Default for SparklineBar
Source§fn default() -> SparklineBar
fn default() -> SparklineBar
Returns the “default value” for a type. Read more
Source§impl From<&u64> for SparklineBar
impl From<&u64> for SparklineBar
Source§impl From<u64> for SparklineBar
impl From<u64> for SparklineBar
Source§impl PartialEq for SparklineBar
impl PartialEq for SparklineBar
impl Copy for SparklineBar
impl Eq for SparklineBar
impl StructuralPartialEq for SparklineBar
Auto Trait Implementations§
impl Freeze for SparklineBar
impl RefUnwindSafe for SparklineBar
impl Send for SparklineBar
impl Sync for SparklineBar
impl Unpin for SparklineBar
impl UnwindSafe for SparklineBar
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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