pub enum Grid {
Regular(RegularGrid),
Lambert(LambertGrid),
}Expand description
The bundle’s grid, in the container’s row-major, north-to-south, west-to-east order.
Variants§
Regular(RegularGrid)
Lambert(LambertGrid)
Implementations§
Source§impl Grid
impl Grid
pub fn width(&self) -> u32
pub fn height(&self) -> u32
Sourcepub fn from_metadata(value: &Value) -> Result<Grid, DecodeError>
pub fn from_metadata(value: &Value) -> Result<Grid, DecodeError>
The grid a metadata document declares. A projected grid is complete or
refused. A regular grid takes the defaults web/src/features/probe/probe.ts::geoGrid
applies to a missing field, since metadata published before the fields
were all written must keep reading.
Trait Implementations§
impl Copy for Grid
impl StructuralPartialEq for Grid
Auto Trait Implementations§
impl Forget for Grid
impl Freeze for Grid
impl Move for Grid
impl RefUnwindSafe for Grid
impl Send for Grid
impl Sync for Grid
impl Unpin for Grid
impl UnsafeUnpin for Grid
impl UnwindSafe for Grid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more