pub struct Composer<N>where
N: ComposeNode,{
pub context: N::Context,
pub nodes: Slab<Node<N>>,
/* private fields */
}Fields§
§context: N::Context§nodes: Slab<Node<N>>Implementations§
Source§impl<N> Composer<N>where
N: ComposeNode,
impl<N> Composer<N>where
N: ComposeNode,
pub fn new(context: N::Context) -> Self
pub fn with_capacity(context: N::Context, capacity: usize) -> Self
pub fn compose<R>(root: R, context: N::Context) -> Recomposer<(), N>
pub fn compose_with<R, F, T>( root: R, context: N::Context, state_fn: F, ) -> Recomposer<T, N>
Trait Implementations§
Auto Trait Implementations§
impl<N> Freeze for Composer<N>
impl<N> !RefUnwindSafe for Composer<N>
impl<N> !Send for Composer<N>
impl<N> !Sync for Composer<N>
impl<N> Unpin for Composer<N>
impl<N> !UnwindSafe for Composer<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