Struct wasm_react::props::Props
source · [−]pub struct Props(_);Expand description
Implementations
sourceimpl 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: &PersistedCallback<Option<T>>) -> Self where
T: OptionFromWasmAbi + 'static,
pub fn ref_callback<T>(self, ref_callback: &PersistedCallback<Option<T>>) -> Self where
T: OptionFromWasmAbi + 'static,
Sets the React ref to the given ref callback.
sourcepub fn insert_callback<T, U>(self, key: &str, f: &PersistedCallback<T, U>) -> Self where
T: FromWasmAbi + 'static,
U: IntoWasmAbi + 'static,
pub fn insert_callback<T, U>(self, key: &str, f: &PersistedCallback<T, U>) -> Self where
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
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