pub struct ProjectedCrsDef { /* private fields */ }Expand description
Definition of a projected CRS (easting, northing in the CRS’s native linear unit).
Implementations§
Source§impl ProjectedCrsDef
impl ProjectedCrsDef
pub const fn new( epsg: u32, datum: Datum, method: ProjectionMethod, linear_unit: LinearUnit, name: &'static str, ) -> Self
pub const fn new_with_base_geographic_crs( epsg: u32, base_geographic_crs_epsg: u32, datum: Datum, method: ProjectionMethod, linear_unit: LinearUnit, name: &'static str, ) -> Self
pub const fn epsg(&self) -> u32
pub const fn datum(&self) -> &Datum
pub const fn base_geographic_crs_epsg(&self) -> u32
pub const fn method(&self) -> ProjectionMethod
pub const fn linear_unit(&self) -> LinearUnit
pub const fn linear_unit_to_meter(&self) -> f64
pub const fn name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for ProjectedCrsDef
impl Clone for ProjectedCrsDef
Source§fn clone(&self) -> ProjectedCrsDef
fn clone(&self) -> ProjectedCrsDef
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 moreSource§impl Debug for ProjectedCrsDef
impl Debug for ProjectedCrsDef
Source§impl From<ProjectedCrsDef> for HorizontalCrsDef
impl From<ProjectedCrsDef> for HorizontalCrsDef
Source§fn from(value: ProjectedCrsDef) -> Self
fn from(value: ProjectedCrsDef) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ProjectedCrsDef
impl RefUnwindSafe for ProjectedCrsDef
impl Send for ProjectedCrsDef
impl Sync for ProjectedCrsDef
impl Unpin for ProjectedCrsDef
impl UnsafeUnpin for ProjectedCrsDef
impl UnwindSafe for ProjectedCrsDef
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