pub struct Cols(pub Vec<Col>);Expand description
Sequence of columns, ordered
Tuple Fields§
§0: Vec<Col>Implementations§
Source§impl Cols
impl Cols
pub fn empty() -> Self
pub fn is_empty(&self) -> bool
pub fn contains(&self, tbl: Col) -> bool
pub fn remove(&mut self, removed: Col)
Sourcepub fn add(&mut self, added: Col)
pub fn add(&mut self, added: Col)
Add a col, preventing duplicates (may be used when the col is present to reorder)
Sourcepub fn add_set(&mut self, col_set: &[Col])
pub fn add_set(&mut self, col_set: &[Col])
Add the columns of the set, except when they’re already present
This makes it possible to add a set while keeping
the order of the previous columns, for example
dysk -c disk+
pub fn remove_set(&mut self, col_set: &[Col])
pub fn cols(&self) -> &[Col]
Trait Implementations§
impl StructuralPartialEq for Cols
Auto Trait Implementations§
impl Freeze for Cols
impl RefUnwindSafe for Cols
impl Send for Cols
impl Sync for Cols
impl Unpin for Cols
impl UnwindSafe for Cols
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