Struct patternfly_yew::SharedTableModel
source · [−]pub struct SharedTableModel<T> { /* private fields */ }Implementations
Trait Implementations
sourcefn clone(&self) -> SharedTableModel<T>
fn clone(&self) -> SharedTableModel<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Shared models are equal by their instance id and generation. NOT by their content.
This is required, because components need to refresh when their view on the model has changed, as the content only exists once in memory.
type Item = T
sourcefn is_expanded(&self, index: usize) -> bool
fn is_expanded(&self, index: usize) -> bool
Test if the entry is expanded
sourcefn set_expanded(&self, index: usize, state: bool) -> bool
fn set_expanded(&self, index: usize, state: bool) -> bool
Set the expanded state of the entry
fn map<F, R>(&self, f: F) -> Vec<R>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator, where
F: Fn(&TableModelEntry<T>) -> R,
A: Allocator,
Auto Trait Implementations
Blanket Implementations
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.