pub struct Segment<C, R> { /* private fields */ }
Expand description
This structure represents a sub table of Table
.
Implementations§
Source§impl Segment<RangeFull, RangeFull>
impl Segment<RangeFull, RangeFull>
Sourcepub fn all() -> SegmentAll
pub fn all() -> SegmentAll
Returns a table segment on which are present all cells.
Trait Implementations§
Source§impl<C, R> Object for Segment<C, R>
impl<C, R> Object for Segment<C, R>
Source§type Iter = SectorIter
type Iter = SectorIter
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<C, R> Freeze for Segment<C, R>
impl<C, R> RefUnwindSafe for Segment<C, R>where
C: RefUnwindSafe,
R: RefUnwindSafe,
impl<C, R> Send for Segment<C, R>
impl<C, R> Sync for Segment<C, R>
impl<C, R> Unpin for Segment<C, R>
impl<C, R> UnwindSafe for Segment<C, R>where
C: UnwindSafe,
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