pub struct InputBounds<T>{
pub minimum_lonlat: Point<T>,
pub maximum_lonlat: Point<T>,
}
Expand description
Used to specify a bounding box to search within when forward-geocoding
minimum
refers to the bottom-left or south-west corner of the bounding boxmaximum
refers to the top-right or north-east corner of the bounding box.
Fields§
§minimum_lonlat: Point<T>
§maximum_lonlat: Point<T>
Implementations§
Source§impl<T> InputBounds<T>
impl<T> InputBounds<T>
Sourcepub fn new<U>(minimum_lonlat: U, maximum_lonlat: U) -> InputBounds<T>
pub fn new<U>(minimum_lonlat: U, maximum_lonlat: U) -> InputBounds<T>
Create a new InputBounds
struct by passing 2 Point
s defining:
- minimum (bottom-left) longitude and latitude coordinates
- maximum (top-right) longitude and latitude coordinates
Trait Implementations§
Source§impl<T> Clone for InputBounds<T>
impl<T> Clone for InputBounds<T>
Source§fn clone(&self) -> InputBounds<T>
fn clone(&self) -> InputBounds<T>
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<T> Debug for InputBounds<T>
impl<T> Debug for InputBounds<T>
Source§impl<T> From<InputBounds<T>> for String
Convert borrowed input bounds into the correct String representation
impl<T> From<InputBounds<T>> for String
Convert borrowed input bounds into the correct String representation
Source§fn from(ip: InputBounds<T>) -> String
fn from(ip: InputBounds<T>) -> String
Converts to this type from the input type.
impl<T> Copy for InputBounds<T>
Auto Trait Implementations§
impl<T> Freeze for InputBounds<T>where
T: Freeze,
impl<T> RefUnwindSafe for InputBounds<T>where
T: RefUnwindSafe,
impl<T> Send for InputBounds<T>where
T: Send,
impl<T> Sync for InputBounds<T>where
T: Sync,
impl<T> Unpin for InputBounds<T>where
T: Unpin,
impl<T> UnwindSafe for InputBounds<T>where
T: UnwindSafe,
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