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 Freeze for Props
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