pub fn in_bounds(&self, grid_position: &GridCoord, zoom_level: usize) -> bool {
        self.get_dimensions(zoom_level).len() == grid_position.len() &&
        self.get_grid_extent(zoom_level).iter()
            .zip(grid_position.iter())
            .all(|(&bound, &coord)| coord < bound)
    }
/// Check whether a block grid position is in the bounds of this dataset.
/// ```
/// use ngpre::prelude::*;
/// use ngpre::smallvec::smallvec;
/// let attrs = DatasetAttributes::new(
///     smallvec![50, 40, 30],
///     smallvec![11, 10, 10],
///     DataType::UINT8,
///     ngpre::compression::CompressionType::default(),
/// );
/// assert!(attrs.in_bounds(&smallvec![4, 3, 2]));
/// assert!(!attrs.in_bounds(&smallvec![5, 3, 2]));
/// ```
Check whether a block grid position is in the bounds of this dataset.
Check whether a block grid position is in the bounds of this dataset .
pub fn in_bounds(&self, grid_position: &GridCoord, zoom_level: usize) -> bool {
        self.get_dimensions(zoom_level).len() == grid_position.len() &&
        self.get_grid_extent(zoom_level).iter()
            .zip(grid_position.iter())
            .all(|(&bound, &coord)| coord < bound)
    }
pub fn in_bounds ( & self , grid_position : & GridCoord , zoom_level : usize ) -> bool { self . get_dimensions ( zoom_level ) . len ( ) == grid_position . len ( ) && self . get_grid_extent ( zoom_level ) . iter ( ) . zip ( grid_position . iter ( ) ) . all ( | ( & bound , & coord ) | coord < bound ) }
Check whether a block grid position is in the bounds of this dataset.
Check whether a block grid position is in the bounds of this dataset .
&self
grid_position
&GridCoord
zoom_level
usize
&self
grid_position
&GridCoord
zoom_level
usize