pub struct TickMarkContext<'a> {
pub time: DateTime<Utc>,
pub mark_type: TickMarkType,
pub locale: Option<&'a str>,
}Expand description
Display time and chart locale for one time-axis tick.
Fields§
§time: DateTime<Utc>Wall-clock fields in the chart’s display zone, carried in a UTC value. This is not a UTC instant and must not be converted to the display zone again.
mark_type: TickMarkTypeCalendar or clock precision selected for this tick.
locale: Option<&'a str>Active chart locale, such as "de-DE"; None uses English names.
Unknown identifiers and builds without locales also use English names.
Trait Implementations§
Source§impl<'a> Clone for TickMarkContext<'a>
impl<'a> Clone for TickMarkContext<'a>
Source§fn clone(&self) -> TickMarkContext<'a>
fn clone(&self) -> TickMarkContext<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for TickMarkContext<'a>
Auto Trait Implementations§
impl<'a> Freeze for TickMarkContext<'a>
impl<'a> RefUnwindSafe for TickMarkContext<'a>
impl<'a> Send for TickMarkContext<'a>
impl<'a> Sync for TickMarkContext<'a>
impl<'a> Unpin for TickMarkContext<'a>
impl<'a> UnsafeUnpin for TickMarkContext<'a>
impl<'a> UnwindSafe for TickMarkContext<'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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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