Struct compose_rt::Composer
source · [−]pub struct Composer<N: ?Sized> { /* private fields */ }Implementations
sourceimpl<N> Composer<N> where
N: 'static + ?Sized + Any + Unpin + Debug,
for<'a> &'a mut N: ComposeNode,
impl<N> Composer<N> where
N: 'static + ?Sized + Any + Unpin + Debug,
for<'a> &'a mut N: ComposeNode,
sourceimpl<N> Composer<N> where
N: 'static + ?Sized + Any + Unpin + Debug,
for<'a> &'a mut N: ComposeNode,
impl<N> Composer<N> where
N: 'static + ?Sized + Any + Unpin + Debug,
for<'a> &'a mut N: ComposeNode,
pub fn finalize(self) -> Composer<N>
pub fn finalize_with<F>(self, func: F) -> Composer<N> where
F: FnOnce(&mut Self),
pub fn tag<F, T>(&mut self, key: usize, func: F) -> T where
F: FnOnce(&mut Composer<N>) -> T,
pub fn group<F, C, S, A, U, Node>(
&mut self,
factory: F,
content: C,
apply: A,
skip: S,
update: U
) where
F: FnOnce(&mut Composer<N>) -> Node,
C: FnOnce(&mut Composer<N>),
S: FnOnce(&mut Node) -> bool,
A: FnOnce(&mut Node, Vec<&N>),
U: FnOnce(&mut Node),
Node: Any + Debug + Unpin + Into<Box<N>>,
Trait Implementations
Auto Trait Implementations
impl<N: ?Sized> RefUnwindSafe for Composer<N> where
N: RefUnwindSafe,
impl<N: ?Sized> Send for Composer<N> where
N: Send,
impl<N: ?Sized> Sync for Composer<N> where
N: Sync,
impl<N: ?Sized> Unpin for Composer<N>
impl<N: ?Sized> UnwindSafe for Composer<N> where
N: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more