Struct elasticsearch_dsl::search::params::GeoLocation
source · [−]pub struct GeoLocation { /* private fields */ }
Expand description
Represents a point in two dimensional space
Implementations
sourceimpl GeoLocation
impl GeoLocation
sourcepub fn new(latitude: f32, longitude: f32) -> Self
pub fn new(latitude: f32, longitude: f32) -> Self
Creates an instance of GeoLocation
Trait Implementations
sourceimpl Clone for GeoLocation
impl Clone for GeoLocation
sourcefn clone(&self) -> GeoLocation
fn clone(&self) -> GeoLocation
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 GeoLocation
impl Debug for GeoLocation
sourceimpl From<(f32, f32)> for GeoLocation
impl From<(f32, f32)> for GeoLocation
sourceimpl IntoIterator for GeoLocation
impl IntoIterator for GeoLocation
type Item = GeoLocation
type Item = GeoLocation
The type of the elements being iterated over.
type IntoIter = IntoIter<<GeoLocation as IntoIterator>::Item>
type IntoIter = IntoIter<<GeoLocation as IntoIterator>::Item>
Which kind of iterator are we turning this into?
sourceimpl PartialEq<GeoLocation> for GeoLocation
impl PartialEq<GeoLocation> for GeoLocation
sourcefn eq(&self, other: &GeoLocation) -> bool
fn eq(&self, other: &GeoLocation) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &GeoLocation) -> bool
fn ne(&self, other: &GeoLocation) -> bool
This method tests for !=
.
sourceimpl Serialize for GeoLocation
impl Serialize for GeoLocation
impl Copy for GeoLocation
impl StructuralPartialEq for GeoLocation
Auto Trait Implementations
impl RefUnwindSafe for GeoLocation
impl Send for GeoLocation
impl Sync for GeoLocation
impl Unpin for GeoLocation
impl UnwindSafe for GeoLocation
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