pub struct SnapOptions {
pub snap_to_price: bool,
pub snap_to_time: bool,
pub snap_distance: f32,
pub magnet_mode: bool,
pub magnet_distance: f32,
}Expand description
Options for snap behavior
Fields§
§snap_to_price: boolEnable snap to OHLC prices
snap_to_time: boolEnable snap to candle times
snap_distance: f32Snap distance threshold in pixels
magnet_mode: boolEnable magnet mode (snap to existing drawing points)
magnet_distance: f32Magnet distance threshold in pixels
Trait Implementations§
Source§impl Clone for SnapOptions
impl Clone for SnapOptions
Source§fn clone(&self) -> SnapOptions
fn clone(&self) -> SnapOptions
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 moreSource§impl Debug for SnapOptions
impl Debug for SnapOptions
Auto Trait Implementations§
impl Freeze for SnapOptions
impl RefUnwindSafe for SnapOptions
impl Send for SnapOptions
impl Sync for SnapOptions
impl Unpin for SnapOptions
impl UnsafeUnpin for SnapOptions
impl UnwindSafe for SnapOptions
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