pub struct TransformerKey {
pub src_epsg: u32,
pub dst_epsg: u32,
}Expand description
Composite cache key identifying a (src_epsg, dst_epsg) transformer
pair.
The struct is Copy + Eq + Hash so it can be used directly in a
HashMap and trivially moved through the MRU queue.
Fields§
§src_epsg: u32Source EPSG code (e.g. 4326 for WGS84).
dst_epsg: u32Destination EPSG code (e.g. 3857 for Web Mercator).
Implementations§
Trait Implementations§
Source§impl Clone for TransformerKey
impl Clone for TransformerKey
Source§fn clone(&self) -> TransformerKey
fn clone(&self) -> TransformerKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TransformerKey
Source§impl Debug for TransformerKey
impl Debug for TransformerKey
impl Eq for TransformerKey
Source§impl Hash for TransformerKey
impl Hash for TransformerKey
Source§impl PartialEq for TransformerKey
impl PartialEq for TransformerKey
Source§fn eq(&self, other: &TransformerKey) -> bool
fn eq(&self, other: &TransformerKey) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TransformerKey
Auto Trait Implementations§
impl Freeze for TransformerKey
impl RefUnwindSafe for TransformerKey
impl Send for TransformerKey
impl Sync for TransformerKey
impl Unpin for TransformerKey
impl UnsafeUnpin for TransformerKey
impl UnwindSafe for TransformerKey
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