pub struct BoundOptions {
pub unbounded: bool,
pub bounds: Option<LatLngBounds>,
pub min_zoom: Option<f64>,
pub max_zoom: Option<f64>,
pub min_pitch: Option<f64>,
pub max_pitch: Option<f64>,
}Expand description
Limits on the camera, for MapHandle::set_bounds().
See mln_bound_options in the
C API reference.
Fields§
§unbounded: boolRemoves the area that limits the camera’s center.
bounds: Option<LatLngBounds>The area that the camera’s center stays within.
min_zoom: Option<f64>§max_zoom: Option<f64>§min_pitch: Option<f64>The lowest pitch, in degrees.
max_pitch: Option<f64>The highest pitch, in degrees.
Trait Implementations§
Source§impl Clone for BoundOptions
impl Clone for BoundOptions
Source§fn clone(&self) -> BoundOptions
fn clone(&self) -> BoundOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BoundOptions
Source§impl Debug for BoundOptions
impl Debug for BoundOptions
Source§impl Default for BoundOptions
impl Default for BoundOptions
Source§fn default() -> BoundOptions
fn default() -> BoundOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for BoundOptions
impl PartialEq for BoundOptions
impl StructuralPartialEq for BoundOptions
Auto Trait Implementations§
impl Freeze for BoundOptions
impl RefUnwindSafe for BoundOptions
impl Send for BoundOptions
impl Sync for BoundOptions
impl Unpin for BoundOptions
impl UnsafeUnpin for BoundOptions
impl UnwindSafe for BoundOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more