pub struct ColumnInfo { /* private fields */ }Expand description
A schema column as the grid shows it now.
Implementations§
Source§impl ColumnInfo
impl ColumnInfo
Sourcepub fn title(&self) -> &SharedString
pub fn title(&self) -> &SharedString
The column’s name: its header text, or the tooltip and accessible name of a header that shows an icon alone.
Sourcepub fn icon(&self) -> Option<&SharedString>
pub fn icon(&self) -> Option<&SharedString>
The header’s icon (its asset path), if it shows one.
Sourcepub fn header_label(&self) -> &HeaderLabel
pub fn header_label(&self) -> &HeaderLabel
What the header shows.
Sourcepub fn zone(&self) -> ColumnZone
pub fn zone(&self) -> ColumnZone
The zone the column is in.
Sourcepub fn is_visible(&self) -> bool
pub fn is_visible(&self) -> bool
Returns true if the column is shown.
Sourcepub fn is_hideable(&self) -> bool
pub fn is_hideable(&self) -> bool
Returns true if the user may hide the column.
Sourcepub fn is_internal(&self) -> bool
pub fn is_internal(&self) -> bool
Returns true if the column is internal (GridColumn::with_internal):
never shown, and left out of a column chooser.
Sourcepub fn is_movable(&self) -> bool
pub fn is_movable(&self) -> bool
Returns true if the user can drag the column’s header.
Sourcepub fn is_resizable(&self) -> bool
pub fn is_resizable(&self) -> bool
Returns true if the user can resize the column.
Sourcepub fn is_sortable(&self) -> bool
pub fn is_sortable(&self) -> bool
Returns true if a click on the column’s header sorts by it.
Sourcepub fn is_groupable(&self) -> bool
pub fn is_groupable(&self) -> bool
Returns true if the user can group by the column.
Sourcepub fn sort(&self) -> Option<SortDirection>
pub fn sort(&self) -> Option<SortDirection>
The column’s sort direction, if the view sorts by it.
Sourcepub fn sort_priority(&self) -> Option<usize>
pub fn sort_priority(&self) -> Option<usize>
The column’s place in a multi-column sort, from 0 for the most significant.
Trait Implementations§
Source§impl Clone for ColumnInfo
impl Clone for ColumnInfo
Source§fn clone(&self) -> ColumnInfo
fn clone(&self) -> ColumnInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for ColumnInfo
impl RefUnwindSafe for ColumnInfo
impl Send for ColumnInfo
impl Sync for ColumnInfo
impl Unpin for ColumnInfo
impl UnsafeUnpin for ColumnInfo
impl UnwindSafe for ColumnInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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