pub struct TimeScaleOptions { /* private fields */ }Implementations§
Source§impl TimeScaleOptions
impl TimeScaleOptions
pub fn new() -> TimeScaleOptions
pub fn with_right_offset(self, right_offset: f64) -> TimeScaleOptions
pub fn with_bar_spacing(self, bar_spacing: f64) -> TimeScaleOptions
pub fn with_min_bar_spacing(self, min_bar_spacing: f64) -> TimeScaleOptions
pub fn with_max_bar_spacing(self, max_bar_spacing: f64) -> TimeScaleOptions
pub fn with_fix_left_edge(self, fix_left_edge: bool) -> TimeScaleOptions
pub fn with_fix_right_edge(self, fix_right_edge: bool) -> TimeScaleOptions
pub fn with_lock_visible_time_range_on_resize( self, lock_visible_time_range_on_resize: bool, ) -> TimeScaleOptions
pub fn with_right_bar_stays_on_scroll( self, right_bar_stays_on_scroll: bool, ) -> TimeScaleOptions
pub fn with_border_visible(self, border_visible: bool) -> TimeScaleOptions
pub fn with_border_color(self, border_color: String) -> TimeScaleOptions
pub fn with_visible(self, visible: bool) -> TimeScaleOptions
pub fn with_time_visible(self, time_visible: bool) -> TimeScaleOptions
pub fn with_seconds_visible(self, seconds_visible: bool) -> TimeScaleOptions
pub fn with_shift_visible_range_on_new_bar( self, shift_visible_range_on_new_bar: bool, ) -> TimeScaleOptions
pub fn with_allow_shift_visible_range_on_whitespace_replacement( self, allow_shift_visible_range_on_whitespace_replacement: bool, ) -> TimeScaleOptions
pub fn with_ticks_visible(self, ticks_visible: bool) -> TimeScaleOptions
pub fn with_tick_mark_max_character_length( self, tick_mark_max_character_length: Option<usize>, ) -> TimeScaleOptions
pub fn with_uniform_distribution( self, uniform_distribution: bool, ) -> TimeScaleOptions
pub fn with_minimum_height(self, minimum_height: f64) -> TimeScaleOptions
pub fn with_allow_bold_labels(self, allow_bold_labels: bool) -> TimeScaleOptions
pub fn with_ignore_whitespace_indices( self, ignore_whitespace_indices: bool, ) -> TimeScaleOptions
pub fn right_offset(&self) -> f64
pub fn set_right_offset(&mut self, right_offset: f64)
pub fn bar_spacing(&self) -> f64
pub fn set_bar_spacing(&mut self, bar_spacing: f64)
pub fn min_bar_spacing(&self) -> f64
pub fn set_min_bar_spacing(&mut self, min_bar_spacing: f64)
pub fn max_bar_spacing(&self) -> f64
pub fn set_max_bar_spacing(&mut self, max_bar_spacing: f64)
pub fn fix_left_edge(&self) -> bool
pub fn set_fix_left_edge(&mut self, fix_left_edge: bool)
pub fn fix_right_edge(&self) -> bool
pub fn set_fix_right_edge(&mut self, fix_right_edge: bool)
pub fn lock_visible_time_range_on_resize(&self) -> bool
pub fn set_lock_visible_time_range_on_resize( &mut self, lock_visible_time_range_on_resize: bool, )
pub fn right_bar_stays_on_scroll(&self) -> bool
pub fn set_right_bar_stays_on_scroll(&mut self, right_bar_stays_on_scroll: bool)
pub fn border_visible(&self) -> bool
pub fn set_border_visible(&mut self, border_visible: bool)
pub fn border_color(&self) -> &str
pub fn set_border_color(&mut self, border_color: String)
pub fn visible(&self) -> bool
pub fn set_visible(&mut self, visible: bool)
pub fn time_visible(&self) -> bool
pub fn set_time_visible(&mut self, time_visible: bool)
pub fn seconds_visible(&self) -> bool
pub fn set_seconds_visible(&mut self, seconds_visible: bool)
pub fn shift_visible_range_on_new_bar(&self) -> bool
pub fn set_shift_visible_range_on_new_bar( &mut self, shift_visible_range_on_new_bar: bool, )
pub fn allow_shift_visible_range_on_whitespace_replacement(&self) -> bool
pub fn set_allow_shift_visible_range_on_whitespace_replacement( &mut self, allow_shift_visible_range_on_whitespace_replacement: bool, )
pub fn ticks_visible(&self) -> bool
pub fn set_ticks_visible(&mut self, ticks_visible: bool)
pub fn tick_mark_max_character_length(&self) -> Option<usize>
pub fn set_tick_mark_max_character_length_value( &mut self, tick_mark_max_character_length: Option<usize>, )
pub fn set_tick_mark_max_character_length( &mut self, tick_mark_max_character_length: usize, )
pub fn reset_tick_mark_max_character_length(&mut self)
pub fn uniform_distribution(&self) -> bool
pub fn set_uniform_distribution(&mut self, uniform_distribution: bool)
pub fn minimum_height(&self) -> f64
pub fn set_minimum_height(&mut self, minimum_height: f64)
pub fn allow_bold_labels(&self) -> bool
pub fn set_allow_bold_labels(&mut self, allow_bold_labels: bool)
pub fn ignore_whitespace_indices(&self) -> bool
pub fn set_ignore_whitespace_indices(&mut self, ignore_whitespace_indices: bool)
Trait Implementations§
Source§impl Clone for TimeScaleOptions
impl Clone for TimeScaleOptions
Source§fn clone(&self) -> TimeScaleOptions
fn clone(&self) -> TimeScaleOptions
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 Default for TimeScaleOptions
impl Default for TimeScaleOptions
Source§fn default() -> TimeScaleOptions
fn default() -> TimeScaleOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TimeScaleOptions
impl<'de> Deserialize<'de> for TimeScaleOptions
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScaleOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TimeScaleOptions, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TimeScaleOptions
impl Serialize for TimeScaleOptions
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TimeScaleOptions
impl RefUnwindSafe for TimeScaleOptions
impl Send for TimeScaleOptions
impl Sync for TimeScaleOptions
impl Unpin for TimeScaleOptions
impl UnsafeUnpin for TimeScaleOptions
impl UnwindSafe for TimeScaleOptions
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> FromFormData for Twhere
T: DeserializeOwned,
impl<T> FromFormData for Twhere
T: DeserializeOwned,
Source§fn from_event(ev: &Event) -> Result<T, FromFormDataError>
fn from_event(ev: &Event) -> Result<T, FromFormDataError>
Tries to deserialize the data, given only the
submit event.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 moreSource§impl<T> SerializableKey for T
impl<T> SerializableKey for T
Source§impl<T> StorageAccess<T> for T
impl<T> StorageAccess<T> for T
Source§fn as_borrowed(&self) -> &T
fn as_borrowed(&self) -> &T
Borrows the value.
Source§fn into_taken(self) -> T
fn into_taken(self) -> T
Takes the value.