Struct carbide_core::state::mapped_state::MappedState [−][src]
Implementations
impl<T: Serialize + Clone + Debug, U: Serialize + Clone + Debug, GS: GlobalState> MappedState<T, U, GS>
[src]
pub fn new_local(
state: Box<dyn State<U, GS>>,
map: fn(_: &U) -> T,
start: T
) -> MappedState<T, U, GS>
[src]
state: Box<dyn State<U, GS>>,
map: fn(_: &U) -> T,
start: T
) -> MappedState<T, U, GS>
pub fn new(
state: Box<dyn State<U, GS>>,
map: fn(_: &U) -> T,
start: T
) -> MappedState<T, U, GS>
[src]
state: Box<dyn State<U, GS>>,
map: fn(_: &U) -> T,
start: T
) -> MappedState<T, U, GS>
Trait Implementations
impl<T: Clone, U: Clone, GS: Clone> Clone for MappedState<T, U, GS> where
T: Serialize + Clone + Debug,
U: Serialize + Clone + Debug,
GS: GlobalState,
[src]
T: Serialize + Clone + Debug,
U: Serialize + Clone + Debug,
GS: GlobalState,
fn clone(&self) -> MappedState<T, U, GS>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Serialize + Clone + Debug, U: Serialize + Clone + Debug + DeserializeOwned, GS: GlobalState> State<T, GS> for MappedState<T, U, GS>
[src]
fn get_value_mut(&mut self, global_state: &mut GS) -> &mut T
[src]
fn get_value(&mut self, global_state: &GS) -> &T
[src]
fn get_latest_value(&self) -> &T
[src]
fn get_latest_value_mut(&mut self) -> &mut T
[src]
fn get_key(&self) -> Option<&String>
[src]
fn update_dependent_states(&mut self, env: &Environment<GS>)
[src]
Auto Trait Implementations
impl<T, U, GS> !RefUnwindSafe for MappedState<T, U, GS>
[src]
impl<T, U, GS> !Send for MappedState<T, U, GS>
[src]
impl<T, U, GS> !Sync for MappedState<T, U, GS>
[src]
impl<T, U, GS> Unpin for MappedState<T, U, GS> where
T: Unpin,
[src]
T: Unpin,
impl<T, U, GS> !UnwindSafe for MappedState<T, U, GS>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DynClone for T where
T: Clone,
[src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<X, T, GS> StateExt<T, GS> for X where
X: 'static + State<T, GS>,
T: 'static + Clone + Debug + DeserializeOwned + Serialize,
GS: GlobalState,
[src]
X: 'static + State<T, GS>,
T: 'static + Clone + Debug + DeserializeOwned + Serialize,
GS: GlobalState,
fn mapped<U: Serialize + Clone + Debug + 'static>(
self,
map: fn(_: &T) -> U
) -> Box<dyn State<U, GS>>
[src]
self,
map: fn(_: &T) -> U
) -> Box<dyn State<U, GS>>
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,