Struct wasm_react::props::Props
source · pub struct Props(/* private fields */);Expand description
Implementations§
source§impl Props
impl Props
sourcepub fn ref_container<T>(self, ref_container: &JsRefContainer<T>) -> Self
pub fn ref_container<T>(self, ref_container: &JsRefContainer<T>) -> Self
Sets the React ref to the given ref container created with the
use_js_ref() hook.
sourcepub fn ref_callback<T>(self, ref_callback: &Callback<Option<T>>) -> Selfwhere
T: OptionFromWasmAbi + 'static,
pub fn ref_callback<T>(self, ref_callback: &Callback<Option<T>>) -> Selfwhere T: OptionFromWasmAbi + 'static,
Sets the React ref to the given ref callback.
sourcepub fn insert_callback<T, U>(self, key: &str, f: &Callback<T, U>) -> Selfwhere
T: FromWasmAbi + 'static,
U: IntoWasmAbi + 'static,
pub fn insert_callback<T, U>(self, key: &str, f: &Callback<T, U>) -> Selfwhere T: FromWasmAbi + 'static, U: IntoWasmAbi + 'static,
Equivalent to props[key] = f;.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Props
impl !Send for Props
impl !Sync for Props
impl Unpin for Props
impl UnwindSafe for Props
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