Struct elasticsearch_dsl::search::params::GeoLocation
source · pub struct GeoLocation { /* private fields */ }
Expand description
Represents a point in two dimensional space
Implementations§
source§impl 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§
source§impl Clone for GeoLocation
impl Clone for GeoLocation
source§fn clone(&self) -> GeoLocation
fn clone(&self) -> GeoLocation
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 GeoLocation
impl Debug for GeoLocation
source§impl 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?
source§impl PartialEq<GeoLocation> for GeoLocation
impl PartialEq<GeoLocation> for GeoLocation
source§fn 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 ==
.source§impl 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§
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