Trait moc::moc::CellOrCellRangeMOCIterator [−][src]
pub trait CellOrCellRangeMOCIterator<T: Idx>: Sized + MOCProperties + Iterator<Item = CellOrCellRange<T>> {
type Qty: MocQty<T>;
fn peek_last(&self) -> Option<&CellOrCellRange<T>>;
fn to_ascii_ivoa<W: Write>(
self,
fold: Option<usize>,
use_offset: bool,
writer: W
) -> Result<()> { ... }
fn to_ascii_stream<W: Write>(
self,
use_offset: bool,
writer: W
) -> Result<()> { ... }
fn ranges(self) -> RangeMOCIteratorFromCellOrCellRanges<T, Self::Qty, Self>ⓘNotable traits for RangeMOCIteratorFromCellOrCellRanges<T, Q, R>impl<T, Q, R> Iterator for RangeMOCIteratorFromCellOrCellRanges<T, Q, R> where
T: Idx,
Q: MocQty<T>,
R: CellOrCellRangeMOCIterator<T, Qty = Q>, type Item = Range<T>;
{ ... }
}
Associated Types
Required methods
fn peek_last(&self) -> Option<&CellOrCellRange<T>>
fn peek_last(&self) -> Option<&CellOrCellRange<T>>
If available, returns the upper cell or cell range the iterator will return, without consuming the iterator. This information is available e.g. for an Iterator from a Vector, but may not be available for an Iterator coming from a stream. If available, this information can be used for fast rejection tests.
Provided methods
WARNING
use_offset=true
is not compatible with the current IVOA standard!
WARNING
- this is not compatible with the current IVOA standard!
fn ranges(self) -> RangeMOCIteratorFromCellOrCellRanges<T, Self::Qty, Self>ⓘNotable traits for RangeMOCIteratorFromCellOrCellRanges<T, Q, R>impl<T, Q, R> Iterator for RangeMOCIteratorFromCellOrCellRanges<T, Q, R> where
T: Idx,
Q: MocQty<T>,
R: CellOrCellRangeMOCIterator<T, Qty = Q>, type Item = Range<T>;
Notable traits for RangeMOCIteratorFromCellOrCellRanges<T, Q, R>
impl<T, Q, R> Iterator for RangeMOCIteratorFromCellOrCellRanges<T, Q, R> where
T: Idx,
Q: MocQty<T>,
R: CellOrCellRangeMOCIterator<T, Qty = Q>, type Item = Range<T>;