Struct leptos_struct_table::ChangeEventHandler
source · pub struct ChangeEventHandler<Row, Col, T>(/* private fields */);
Expand description
New type wrapper of a closure that takes a TableChangeEvent
. This allows the on_change
prop
to be optional while being able to take a simple closure.
Implementations§
source§impl<Row, Col, T> ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> ChangeEventHandler<Row, Col, T>
pub fn call(&self, event: TableChangeEvent<Row, Col, T>)
Trait Implementations§
source§impl<Row, Col, T> Default for ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> Default for ChangeEventHandler<Row, Col, T>
source§impl<F, Row, Col, T> From<F> for ChangeEventHandler<Row, Col, T>where
F: Fn(TableChangeEvent<Row, Col, T>) + 'static,
impl<F, Row, Col, T> From<F> for ChangeEventHandler<Row, Col, T>where
F: Fn(TableChangeEvent<Row, Col, T>) + 'static,
Auto Trait Implementations§
impl<Row, Col, T> !RefUnwindSafe for ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> !Send for ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> !Sync for ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> Unpin for ChangeEventHandler<Row, Col, T>
impl<Row, Col, T> !UnwindSafe for ChangeEventHandler<Row, Col, T>
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