pub enum ExpandingState {
All,
Keys(HashSet<RowKey>),
}Expand description
TanStack-compatible expanded state.
In TanStack Table v8, the expanded state is true | Record<RowId, boolean>.
We model this as:
All: every row is considered expanded (expanded === true).Keys: a set of explicitly expanded rows.
Variants§
Trait Implementations§
Source§impl Clone for ExpandingState
impl Clone for ExpandingState
Source§fn clone(&self) -> ExpandingState
fn clone(&self) -> ExpandingState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExpandingState
impl Debug for ExpandingState
Source§impl Default for ExpandingState
impl Default for ExpandingState
Source§fn default() -> ExpandingState
fn default() -> ExpandingState
Returns the “default value” for a type. Read more
Source§impl FromIterator<RowKey> for ExpandingState
impl FromIterator<RowKey> for ExpandingState
Source§fn from_iter<T>(iter: T) -> ExpandingStatewhere
T: IntoIterator<Item = RowKey>,
fn from_iter<T>(iter: T) -> ExpandingStatewhere
T: IntoIterator<Item = RowKey>,
Creates a value from an iterator. Read more
Source§impl PartialEq for ExpandingState
impl PartialEq for ExpandingState
impl Eq for ExpandingState
impl StructuralPartialEq for ExpandingState
Auto Trait Implementations§
impl Freeze for ExpandingState
impl RefUnwindSafe for ExpandingState
impl Send for ExpandingState
impl Sync for ExpandingState
impl Unpin for ExpandingState
impl UnsafeUnpin for ExpandingState
impl UnwindSafe for ExpandingState
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