pub struct Columns<R> { /* private fields */ }
Expand description
Column denotes a set of cells on given columns on a Table
.
Implementations§
Source§impl<R> Columns<R>where
R: RangeBounds<usize>,
impl<R> Columns<R>where
R: RangeBounds<usize>,
Source§impl Columns<()>
impl Columns<()>
Sourcepub fn single(index: usize) -> Column
pub fn single(index: usize) -> Column
Returns a new instance of Columns
for a single column.
If the boundaries are exceeded it may panic.
Sourcepub fn first() -> FirstColumn
pub fn first() -> FirstColumn
Returns a new instance of Columns
for a first column.
If the boundaries are exceeded the object will produce no cells.
Sourcepub fn last() -> LastColumn
pub fn last() -> LastColumn
Returns a new instance of Columns
for a last column.
If the boundaries are exceeded the object will produce no cells.
Trait Implementations§
Source§impl<B> Locator for Columns<B>where
B: RangeBounds<usize>,
impl<B> Locator for Columns<B>where
B: RangeBounds<usize>,
Source§impl<R> Object for Columns<R>where
R: RangeBounds<usize>,
impl<R> Object for Columns<R>where
R: RangeBounds<usize>,
Source§type Iter = ColumnsIter
type Iter = ColumnsIter
An
Iterator
which returns a list of cells.Source§fn cells<T>(&self, table: &Table<T>) -> Self::Iterwhere
T: Records,
fn cells<T>(&self, table: &Table<T>) -> Self::Iterwhere
T: Records,
Cells returns a set of coordinates of cells
Source§fn and<O>(self, rhs: O) -> UnionCombination<Self, O>where
O: Object,
fn and<O>(self, rhs: O) -> UnionCombination<Self, O>where
O: Object,
Combines cells.
It doesn’t repeat cells.
Source§fn not<O>(self, rhs: O) -> DiffCombination<Self, O>where
O: Object,
fn not<O>(self, rhs: O) -> DiffCombination<Self, O>where
O: Object,
Excludes rhs cells from this cells.
Source§fn intersect<O>(self, rhs: O) -> IntersectionCombination<Self, O>where
O: Object,
fn intersect<O>(self, rhs: O) -> IntersectionCombination<Self, O>where
O: Object,
Returns cells which are present in both
Object
s only.Source§fn inverse(self) -> InversionCombination<Self>
fn inverse(self) -> InversionCombination<Self>
Returns cells which are not present in target
Object
.Auto Trait Implementations§
impl<R> Freeze for Columns<R>where
R: Freeze,
impl<R> RefUnwindSafe for Columns<R>where
R: RefUnwindSafe,
impl<R> Send for Columns<R>where
R: Send,
impl<R> Sync for Columns<R>where
R: Sync,
impl<R> Unpin for Columns<R>where
R: Unpin,
impl<R> UnwindSafe for Columns<R>where
R: UnwindSafe,
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