pub trait SignalWith<T> {
// Required method
fn id(&self) -> Id;
// Provided methods
fn with<O>(&self, f: impl FnOnce(&T) -> O) -> O
where T: 'static { ... }
fn with_untracked<O>(&self, f: impl FnOnce(&T) -> O) -> O
where T: 'static { ... }
fn try_with<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> O
where T: 'static { ... }
fn try_with_untracked<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> O
where T: 'static { ... }
}Required Methods§
Provided Methods§
fn with<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
fn with_untracked<O>(&self, f: impl FnOnce(&T) -> O) -> Owhere
T: 'static,
fn try_with<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> Owhere
T: 'static,
fn try_with_untracked<O>(&self, f: impl FnOnce(Option<&T>) -> O) -> Owhere
T: 'static,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.