pub struct Comp<C: Component>(_);
Implementations
sourceimpl<C: Component> Comp<C>
impl<C: Component> Comp<C>
pub fn window_event(&self, listener: Box<dyn Listener>) -> &Self
pub fn callback<Cl>(
&self,
fn_not_update: impl Fn(&C) -> Cl + 'static
) -> impl Fn() where
Cl: Into<Checklist<C>>,
pub fn callback_mut<Cl>(
&self,
fn_update: impl Fn(&mut C) -> Cl + 'static
) -> impl Fn() where
Cl: Into<Checklist<C>>,
pub fn callback_once_mut<Cl>(
&self,
fn_update: impl FnOnce(&mut C) -> Cl + 'static
) -> impl FnOnce() where
Cl: Into<Checklist<C>>,
pub fn callback_arg_once_mut<T: 'static, Cl>(
&self,
fn_update: impl FnOnce(&mut C, T) -> Cl + 'static
) -> impl FnOnce(T) where
Cl: Into<Checklist<C>>,
pub fn callback_arg_mut<T: 'static, Cl>(
&self,
fn_update: impl Fn(&mut C, T) -> Cl + 'static
) -> impl Fn(T) where
Cl: Into<Checklist<C>>,
pub fn async_callback_mut<Cl, F>(
&self,
fn_update: impl Fn(&mut C) -> Cl + 'static,
future_creator: impl Fn() -> F + 'static
) -> impl Fn() where
Cl: Into<Checklist<C>>,
F: 'static + Future<Output = ()>,
pub fn async_callback_arg_mut<T, Cl, F>(
&self,
fn_update: impl Fn(&mut C, T) -> Cl + 'static,
future_creator: impl Fn() -> F + 'static
) -> impl Fn() where
T: 'static,
Cl: Into<Checklist<C>>,
F: 'static + Future<Output = T>,
pub fn async_callback_arg_once_mut<T, Cl, F>(
&self,
fn_update: impl Fn(&mut C, T) -> Cl + 'static,
future_creator: impl FnOnce() -> F + 'static
) -> impl FnOnce() where
T: 'static,
Cl: Into<Checklist<C>>,
F: 'static + Future<Output = T>,
pub fn handler<T: 'static, Cl>(
&self,
fn_not_update: impl Fn(&C) -> Cl + 'static
) -> impl Fn(T) where
Cl: Into<Checklist<C>>,
pub fn handler_mut<T: 'static, Cl>(
&self,
fn_update: impl Fn(&mut C) -> Cl + 'static
) -> impl Fn(T) where
Cl: Into<Checklist<C>>,
pub fn handler_arg_mut<T: 'static, Cl>(
&self,
fn_update: impl Fn(&mut C, T) -> Cl + 'static
) -> impl Fn(T) where
Cl: Into<Checklist<C>>,
pub fn async_handler_mut<T: 'static, R: 'static, Cl, F>(
&self,
fn_update: impl Fn(&mut C, Result<R, JsValue>) -> Cl + 'static,
future_creator: impl Fn() -> F + 'static
) -> impl Fn(T) where
Cl: Into<Checklist<C>>,
F: 'static + Future<Output = Result<R, JsValue>>,
Trait Implementations
Auto Trait Implementations
impl<C> !RefUnwindSafe for Comp<C>
impl<C> !Send for Comp<C>
impl<C> !Sync for Comp<C>
impl<C> Unpin for Comp<C>
impl<C> !UnwindSafe for Comp<C>
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more