Struct elasticsearch_dsl::search::params::Coordinate
source · pub struct Coordinate { /* private fields */ }
Expand description
Represents a point in two dimensional space
Implementations§
source§impl Coordinate
impl Coordinate
sourcepub fn new(x: f32, y: f32) -> Self
pub fn new(x: f32, y: f32) -> Self
Creates an instance of Coordinate
Trait Implementations§
source§impl Clone for Coordinate
impl Clone for Coordinate
source§fn clone(&self) -> Coordinate
fn clone(&self) -> Coordinate
Returns a copy 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 Coordinate
impl Debug for Coordinate
source§impl Display for Coordinate
impl Display for Coordinate
source§impl FromStr for Coordinate
impl FromStr for Coordinate
source§impl PartialEq for Coordinate
impl PartialEq for Coordinate
source§fn eq(&self, other: &Coordinate) -> bool
fn eq(&self, other: &Coordinate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for Coordinate
impl PartialOrd for Coordinate
source§fn partial_cmp(&self, other: &Coordinate) -> Option<Ordering>
fn partial_cmp(&self, other: &Coordinate) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Serialize for Coordinate
impl Serialize for Coordinate
impl Copy for Coordinate
impl StructuralPartialEq for Coordinate
Auto Trait Implementations§
impl RefUnwindSafe for Coordinate
impl Send for Coordinate
impl Sync for Coordinate
impl Unpin 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