pub struct Coordinate { /* private fields */ }Expand description
Whole ten-millionths of a degree, so two equal points compare equal.
Implementations§
Trait Implementations§
Source§impl Cast for Coordinate
impl Cast for Coordinate
const COLUMNS: &'static [ColumnSpec]
fn encode(&self, out: &mut Vec<SqlValue>)
fn decode(row: &mut dyn ColumnReader) -> Result<Self>
const NULLABLE: bool = false
Source§const SENSITIVE: bool = false
const SENSITIVE: bool = false
A field holding it is never filtered, sorted, listed or searched, as
#[sensitive] ones.Source§const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
const MOVES: Option<fn(&Self) -> Option<&'static Targets>> = None
Set for a value moving between listed states; a save of any other value skips the check.
Source§const HOLDS_STATES: bool
const HOLDS_STATES: bool
Set when a state anywhere in the value is checked on save, as a field’s of several.
fn refuse_unlisted_move( field: &str, stored: &Self, current: &Self, ) -> Result<(), Error>
Source§impl Clone for Coordinate
impl Clone for Coordinate
impl Copy for Coordinate
Source§impl Debug for Coordinate
impl Debug for Coordinate
Source§impl<'de> Deserialize<'de> for Coordinate
impl<'de> Deserialize<'de> for Coordinate
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Coordinate
Source§impl Fields for Coordinate
impl Fields for Coordinate
Source§impl Hash for Coordinate
impl Hash for Coordinate
Source§impl LogFields for Coordinate
Available on crate feature geo only.Two decimals, about a kilometre: a full-precision position is personal, an area is not.
impl LogFields for Coordinate
Available on crate feature
geo only.Two decimals, about a kilometre: a full-precision position is personal, an area is not.
Source§impl PartialEq for Coordinate
impl PartialEq for Coordinate
Source§impl Present for Coordinate
impl Present for Coordinate
Source§impl Samples for Coordinate
impl Samples for Coordinate
Source§impl Serialize for Coordinate
impl Serialize for Coordinate
impl StructuralPartialEq for Coordinate
Auto Trait Implementations§
impl Forget for Coordinate
impl Freeze for Coordinate
impl RefUnwindSafe for Coordinate
impl Send for Coordinate
impl Sync for Coordinate
impl Unpin for Coordinate
impl UnsafeUnpin for Coordinate
impl UnwindSafe for Coordinate
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