Enum leptos_struct_table::Selection
source · pub enum Selection {
None,
Single(RwSignal<Option<usize>>),
Multiple(RwSignal<HashSet<usize>>),
}
Expand description
Type of selection together with the RwSignal
to hold the selection
Variants§
None
No selection possible (the default).
Single(RwSignal<Option<usize>>)
Allow only one row to be selected at a time. None
if no rows are selected.
Some(<row index>)
if a row is selected.
Multiple(RwSignal<HashSet<usize>>)
Allow multiple rows to be selected at a time. Each entry in the Vec
is the index of a selected row.
Implementations§
Trait Implementations§
source§impl PartialEq for Selection
impl PartialEq for Selection
impl Copy for Selection
impl Eq for Selection
impl StructuralPartialEq for Selection
Auto Trait Implementations§
impl RefUnwindSafe for Selection
impl Send for Selection
impl Sync for Selection
impl Unpin for Selection
impl UnwindSafe for Selection
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.