pub struct CompoundCrsDef { /* private fields */ }Expand description
A compound CRS made from one horizontal CRS and one vertical CRS.
Implementations§
Source§impl CompoundCrsDef
impl CompoundCrsDef
pub fn new( epsg: u32, horizontal: HorizontalCrsDef, vertical: VerticalCrsDef, name: &'static str, ) -> Self
pub fn from_crs_def( epsg: u32, horizontal: CrsDef, vertical: VerticalCrsDef, name: &'static str, ) -> Result<Self>
pub const fn epsg(&self) -> u32
pub const fn horizontal(&self) -> &HorizontalCrsDef
pub const fn vertical_crs(&self) -> &VerticalCrsDef
pub const fn name(&self) -> &'static str
pub fn as_geographic(&self) -> Option<&GeographicCrsDef>
pub fn as_projected(&self) -> Option<&ProjectedCrsDef>
pub fn horizontal_datum(&self) -> &Datum
pub fn base_geographic_crs_epsg(&self) -> Option<u32>
pub fn semantically_equivalent(&self, other: &Self) -> bool
Trait Implementations§
Source§impl Clone for CompoundCrsDef
impl Clone for CompoundCrsDef
Source§fn clone(&self) -> CompoundCrsDef
fn clone(&self) -> CompoundCrsDef
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CompoundCrsDef
impl RefUnwindSafe for CompoundCrsDef
impl Send for CompoundCrsDef
impl Sync for CompoundCrsDef
impl Unpin for CompoundCrsDef
impl UnsafeUnpin for CompoundCrsDef
impl UnwindSafe for CompoundCrsDef
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