pub struct Scope<S, N>where
N: ComposeNode,{
pub id: ScopeId,
/* private fields */
}Fields§
§id: ScopeIdImplementations§
Source§impl<S, N> Scope<S, N>where
S: 'static,
N: ComposeNode,
impl<S, N> Scope<S, N>where
S: 'static,
N: ComposeNode,
pub fn child<C>(&self) -> Scope<C, N>where
C: 'static,
pub fn use_state<F, T>(&self, init: F) -> State<T, N>where
T: 'static,
F: Fn() -> T + 'static,
pub fn key<C>(&self, key: usize, content: C)where
C: Fn(Self) + 'static,
pub fn create_node<C, T, I, A, F, U>( &self, child_scope: Scope<T, N>, content: C, input: I, factory: F, update: U, )
pub fn create_any_node<C, T, I, A, E, F, U>( &self, child_scope: Scope<T, N>, content: C, input: I, factory: F, update: U, )
Trait Implementations§
Source§impl<S, N> Clone for Scope<S, N>where
N: ComposeNode,
impl<S, N> Clone for Scope<S, N>where
N: ComposeNode,
impl<S, N> Copy for Scope<S, N>where
N: ComposeNode,
Auto Trait Implementations§
impl<S, N> Freeze for Scope<S, N>
impl<S, N> !RefUnwindSafe for Scope<S, N>
impl<S, N> !Send for Scope<S, N>
impl<S, N> !Sync for Scope<S, N>
impl<S, N> Unpin for Scope<S, N>
impl<S, N> !UnwindSafe for Scope<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