Skip to main content

ValueExt

Trait ValueExt 

Source
pub trait ValueExt<T>: Clone
where T: Clone + PartialEq + 'static,
{ // Required methods fn value_untracked(&self) -> T; fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U> where U: Clone + PartialEq + 'static; fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>; fn springed(self, spec: SpringSpec) -> Live<T>; }

Required Methods§

Source

fn value_untracked(&self) -> T

Source

fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
where U: Clone + PartialEq + 'static,

Source

fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>

Source

fn springed(self, spec: SpringSpec) -> Live<T>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<T> ValueExt<T> for Memo<T>
where T: Clone + PartialEq + 'static,

Source§

fn value_untracked(&self) -> T

Source§

fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
where U: Clone + PartialEq + 'static,

Source§

fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>

Source§

fn springed(self, spec: SpringSpec) -> Live<T>

Source§

impl<T> ValueExt<T> for Signal<T>
where T: Clone + PartialEq + 'static,

Source§

fn value_untracked(&self) -> T

Source§

fn map_value<U>(&self, f: impl Fn(&T) -> U + 'static) -> Live<U>
where U: Clone + PartialEq + 'static,

Source§

fn animated(self, spec: impl Into<AnimSpec>) -> Live<T>

Source§

fn springed(self, spec: SpringSpec) -> Live<T>

Implementors§