pub struct Numeric<M> { /* private fields */ }Expand description
usize ⇄ f64.
Trait Implementations§
Source§impl<M> Binding<f64> for Numeric<M>
impl<M> Binding<f64> for Numeric<M>
Source§fn read(&self) -> f64
fn read(&self) -> f64
Tracked read: the current value, subscribing the running computation to changes.
Source§fn peek(&self) -> f64
fn peek(&self) -> f64
Untracked read: the current value, subscribing nothing (the reactive world’s “peek”).
Source§fn write_preview(&self, v: T)
fn write_preview(&self, v: T)
A live write mid-gesture (
Event::ValueChanged): readers must follow, but nothing
durable should key off it. Defaults to Binding::write: a plain signal has no
notion of “durable”, and a degraded backend that never commits stays correct.Source§fn write_commit(&self, v: T)
fn write_commit(&self, v: T)
The settled value that ends a gesture (
Event::ValueCommitted). Defaults to
Binding::write; a day-model field seals its preview session here: one change
record, one undo unit, one UPDATE for the whole drag.Source§fn write_teardown(&self, v: T)
fn write_teardown(&self, v: T)
Seal the last preview when its control is disposed. Persistent bindings default to
committing; scope-owned signals have already received the preview and may be gone.
impl<M> Copy for Numeric<M>where
M: Copy,
Auto Trait Implementations§
impl<M> Freeze for Numeric<M>where
M: Freeze,
impl<M> RefUnwindSafe for Numeric<M>where
M: RefUnwindSafe,
impl<M> Send for Numeric<M>where
M: Send,
impl<M> Sync for Numeric<M>where
M: Sync,
impl<M> Unpin for Numeric<M>where
M: Unpin,
impl<M> UnsafeUnpin for Numeric<M>where
M: UnsafeUnpin,
impl<M> UnwindSafe for Numeric<M>where
M: UnwindSafe,
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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