pub trait Domain2D {
// Required methods
fn row_range(&self) -> Range<usize>;
fn col_range(&self) -> Range<usize>;
// Provided methods
fn range(&self) -> MatrixRange { ... }
fn start(&self) -> MatrixCoordinates { ... }
fn end(&self) -> MatrixCoordinates { ... }
fn middle(&self) -> (f64, f64) { ... }
}
Expand description
Domain in two directions.
Required Methods§
Provided Methods§
Sourcefn range(&self) -> MatrixRange
fn range(&self) -> MatrixRange
The area spanned by this domain.
Sourcefn start(&self) -> MatrixCoordinates
fn start(&self) -> MatrixCoordinates
Starting coordinate of this domain (inclusive).
Sourcefn end(&self) -> MatrixCoordinates
fn end(&self) -> MatrixCoordinates
Ending coordinate of this domain (exclusive).