[−][src]Struct vega_lite_4::TimeUnitParamsBuilder
Builder for TimeUnitParams
.
Implementations
impl TimeUnitParamsBuilder
[src]
pub fn maxbins<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
If no unit
is specified, maxbins is used to infer time units.
pub fn step<VALUE: Into<f64>>(&mut self, value: VALUE) -> &mut Self
[src]
The number of steps between bins, in terms of the least significant unit provided.
pub fn unit<VALUE: Into<TimeUnit>>(&mut self, value: VALUE) -> &mut Self
[src]
Defines how date-time values should be binned.
pub fn utc<VALUE: Into<bool>>(&mut self, value: VALUE) -> &mut Self
[src]
True to use UTC timezone. Equivalent to using a utc
prefixed TimeUnit
.
pub fn build(&self) -> Result<TimeUnitParams, String>
[src]
Trait Implementations
impl Clone for TimeUnitParamsBuilder
[src]
pub fn clone(&self) -> TimeUnitParamsBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for TimeUnitParamsBuilder
[src]
pub fn default() -> TimeUnitParamsBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for TimeUnitParamsBuilder
[src]
impl Send for TimeUnitParamsBuilder
[src]
impl Sync for TimeUnitParamsBuilder
[src]
impl Unpin for TimeUnitParamsBuilder
[src]
impl UnwindSafe for TimeUnitParamsBuilder
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,