pub struct Recomposer<S, N>where
N: ComposeNode,{ /* private fields */ }
Implementations§
Source§impl<S, N> Recomposer<S, N>where
S: 'static,
N: ComposeNode,
impl<S, N> Recomposer<S, N>where
S: 'static,
N: ComposeNode,
pub fn recompose(&mut self)
pub fn recompose_with(&mut self, new_state: S)
pub fn root_node_key(&self) -> NodeKey
pub fn with_context<F, T>(&self, func: F) -> T
pub fn with_context_mut<F, T>(&mut self, func: F) -> T
pub fn with_composer<F, T>(&self, func: F) -> T
pub fn with_composer_mut<F, T>(&mut self, func: F) -> T
pub fn get_root_state(&self) -> Swhere
S: Clone,
pub fn set_root_state(&mut self, val: S)
pub fn with_root_state<F, T>(&self, func: F) -> T
pub fn with_root_state_mut<F, T>(&mut self, func: F) -> T
pub fn print_tree(&self)where
N: Debug,
pub fn print_tree_with<D>(&self, node_key: NodeKey, display_fn: D)
Trait Implementations§
Auto Trait Implementations§
impl<S, N> Freeze for Recomposer<S, N>
impl<S, N> !RefUnwindSafe for Recomposer<S, N>
impl<S, N> !Send for Recomposer<S, N>
impl<S, N> !Sync for Recomposer<S, N>
impl<S, N> Unpin for Recomposer<S, N>
impl<S, N> !UnwindSafe for Recomposer<S, N>
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