pub struct TableView { /* private fields */ }Expand description
The table view.
Implementations§
Source§impl TableView
impl TableView
Sourcepub fn new(id: impl Into<SharedString>) -> Self
pub fn new(id: impl Into<SharedString>) -> Self
An empty table; id keeps its elements apart from another table’s in the same window.
Sourcepub fn with_summarizer(self, by: Arc<dyn Summarizer>) -> Self
pub fn with_summarizer(self, by: Arc<dyn Summarizer>) -> Self
Computes the summaries with by (a backend) instead of the CPU.
Sourcepub fn set_summaries(
&mut self,
summaries: Arc<Vec<ColumnSummary>>,
cx: &mut Context<'_, Self>,
)
pub fn set_summaries( &mut self, summaries: Arc<Vec<ColumnSummary>>, cx: &mut Context<'_, Self>, )
Summaries computed elsewhere (a server’s answer, a cache), in column order: shown as they are, nothing computed here until the data or the bins change.
Sourcepub fn set_data(&mut self, data: Arc<TableData>, cx: &mut Context<'_, Self>)
pub fn set_data(&mut self, data: Arc<TableData>, cx: &mut Context<'_, Self>)
Shows data (its summaries computed off the UI thread); sort, selection and widths reset.
Sourcepub fn set_spec(&mut self, spec: TableSpec, cx: &mut Context<'_, Self>)
pub fn set_spec(&mut self, spec: TableSpec, cx: &mut Context<'_, Self>)
The settings (a change of bins or of the text limits computes the summaries again).
Sourcepub fn set_roles(
&mut self,
roles: Vec<Option<SharedString>>,
cx: &mut Context<'_, Self>,
)
pub fn set_roles( &mut self, roles: Vec<Option<SharedString>>, cx: &mut Context<'_, Self>, )
Each column’s role tag, in column order (None: no tag).
Sourcepub fn toggle_summary(&mut self, cx: &mut Context<'_, Self>)
pub fn toggle_summary(&mut self, cx: &mut Context<'_, Self>)
Folds or unfolds the summary.
Trait Implementations§
impl EventEmitter<TableEvent> for TableView
Auto Trait Implementations§
impl !RefUnwindSafe for TableView
impl !Send for TableView
impl !Sync for TableView
impl !UnwindSafe for TableView
impl Forget for TableView
impl Freeze for TableViewwhere
&'static str: Freeze,
*const ArcInner<str> is !null: Freeze,
PhantomData<ArcInner<str>>: Freeze,
*const ArcInner<TableData> is !null: Freeze,
PhantomData<ArcInner<TableData>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Option<SharedString>>: Freeze,
*const ArcInner<Vec<ColumnSummary>> is !null: Freeze,
PhantomData<ArcInner<Vec<ColumnSummary>>>: Freeze,
*const ArcInner<Vec<usize>> is !null: Freeze,
PhantomData<ArcInner<Vec<usize>>>: Freeze,
PhantomData<(usize, f32)>: Freeze,
*const RcInner<RefCell<UniformListScrollState>> is !null: Freeze,
PhantomData<RcInner<RefCell<UniformListScrollState>>>: Freeze,
*const RcInner<Cell<f32>> is !null: Freeze,
PhantomData<RcInner<Cell<f32>>>: Freeze,
*const () is !null: Freeze,
PhantomData<((), RunnableMeta)>: Freeze,
*const Task<Box<dyn Any + Send + Sync>> is !null: Freeze,
PhantomData<Task<Box<dyn Any + Send + Sync>>>: Freeze,
PhantomData<fn()>: Freeze,
*const ArcInner<Mutex<RawMutex, RendezvousState<()>>> is !null: Freeze,
PhantomData<ArcInner<Mutex<RawMutex, RendezvousState<()>>>>: Freeze,
*const ArcInner<dyn Summarizer> is !null: Freeze,
PhantomData<ArcInner<dyn Summarizer>>: Freeze,
impl Move for TableView
impl Unpin for TableViewwhere
&'static str: Unpin,
Arc<str>: Unpin,
Arc<TableData>: Unpin,
*const u8 is !null: Unpin,
Arc<Vec<ColumnSummary>>: Unpin,
Arc<Vec<usize>>: Unpin,
Rc<RefCell<UniformListScrollState>>: Unpin,
Rc<Cell<f32>>: Unpin,
Task<(), RunnableMeta>: Unpin,
Box<Task<Box<dyn Any + Send + Sync>>>: Unpin,
Arc<Mutex<RawMutex, RendezvousState<()>>>: Unpin,
Arc<dyn Summarizer>: Unpin,
impl UnsafeUnpin for TableViewwhere
&'static str: UnsafeUnpin,
*const ArcInner<str> is !null: UnsafeUnpin,
PhantomData<ArcInner<str>>: UnsafeUnpin,
*const ArcInner<TableData> is !null: UnsafeUnpin,
PhantomData<ArcInner<TableData>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Option<SharedString>>: UnsafeUnpin,
*const ArcInner<Vec<ColumnSummary>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<ColumnSummary>>>: UnsafeUnpin,
*const ArcInner<Vec<usize>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Vec<usize>>>: UnsafeUnpin,
PhantomData<(usize, f32)>: UnsafeUnpin,
*const RcInner<RefCell<UniformListScrollState>> is !null: UnsafeUnpin,
PhantomData<RcInner<RefCell<UniformListScrollState>>>: UnsafeUnpin,
*const RcInner<Cell<f32>> is !null: UnsafeUnpin,
PhantomData<RcInner<Cell<f32>>>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<((), RunnableMeta)>: UnsafeUnpin,
*const Task<Box<dyn Any + Send + Sync>> is !null: UnsafeUnpin,
PhantomData<Task<Box<dyn Any + Send + Sync>>>: UnsafeUnpin,
PhantomData<fn()>: UnsafeUnpin,
*const ArcInner<Mutex<RawMutex, RendezvousState<()>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<RawMutex, RendezvousState<()>>>>: UnsafeUnpin,
*const ArcInner<dyn Summarizer> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn Summarizer>>: UnsafeUnpin,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more