Struct patternfly_yew::SharedTableModel
source · [−]pub struct SharedTableModel<T> { /* private fields */ }Implementations
Trait Implementations
sourceimpl<T: Clone> Clone for SharedTableModel<T>
impl<T: Clone> Clone for SharedTableModel<T>
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
sourceimpl<T: Debug> Debug for SharedTableModel<T>
impl<T: Debug> Debug for SharedTableModel<T>
sourceimpl<T> Default for SharedTableModel<T>
impl<T> Default for SharedTableModel<T>
sourceimpl<T> From<Vec<T, Global>> for SharedTableModel<T>
impl<T> From<Vec<T, Global>> for SharedTableModel<T>
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.
sourceimpl<T> TableModel for SharedTableModel<T> where
T: TableRenderer + Clone + Debug + PartialEq + 'static,
impl<T> TableModel for SharedTableModel<T> where
T: TableRenderer + Clone + Debug + PartialEq + 'static,
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
impl<T> RefUnwindSafe for SharedTableModel<T>
impl<T> Send for SharedTableModel<T> where
T: Send + Sync,
impl<T> Sync for SharedTableModel<T> where
T: Send + Sync,
impl<T> Unpin for SharedTableModel<T>
impl<T> UnwindSafe for SharedTableModel<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
sourcefn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert self to a value of a Properties struct.
sourceimpl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
sourcefn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert self to a value of a Properties struct.
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more