Struct elasticsearch_dsl::search::params::Coordinate
source · [−]pub struct Coordinate { /* private fields */ }
Expand description
Represents a point in two dimensional space
Implementations
sourceimpl 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
sourceimpl Clone for Coordinate
impl Clone for Coordinate
sourcefn clone(&self) -> Coordinate
fn clone(&self) -> Coordinate
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Coordinate
impl Debug for Coordinate
sourceimpl Display for Coordinate
impl Display for Coordinate
sourceimpl From<(f32, f32)> for Coordinate
impl From<(f32, f32)> for Coordinate
sourceimpl FromStr for Coordinate
impl FromStr for Coordinate
sourceimpl PartialEq<Coordinate> for Coordinate
impl PartialEq<Coordinate> for Coordinate
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &Coordinate) -> bool
fn ne(&self, other: &Coordinate) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Coordinate> for Coordinate
impl PartialOrd<Coordinate> for Coordinate
sourcefn partial_cmp(&self, other: &Coordinate) -> Option<Ordering>
fn partial_cmp(&self, other: &Coordinate) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more