pub struct CameraBounds {
pub bounds: LatLngBounds,
pub unbounded: bool,
pub min_zoom: f64,
pub max_zoom: f64,
pub min_pitch: f64,
pub max_pitch: f64,
}Expand description
All the limits on a map’s camera.
Its members mean the same as those of BoundOptions.
See mln_camera_bounds in the
C API reference.
Fields§
§bounds: LatLngBoundsThe area that the camera’s center stays within. When unbounded is
true, it covers the whole world.
unbounded: boolWhether no area limits the camera’s center.
min_zoom: f64§max_zoom: f64§min_pitch: f64The lowest pitch, in degrees.
max_pitch: f64The highest pitch, in degrees.
Trait Implementations§
Source§impl Clone for CameraBounds
impl Clone for CameraBounds
Source§fn clone(&self) -> CameraBounds
fn clone(&self) -> CameraBounds
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 CameraBounds
Source§impl Debug for CameraBounds
impl Debug for CameraBounds
Source§impl Default for CameraBounds
impl Default for CameraBounds
Source§fn default() -> CameraBounds
fn default() -> CameraBounds
Returns the “default value” for a type. Read more
Source§impl PartialEq for CameraBounds
impl PartialEq for CameraBounds
impl StructuralPartialEq for CameraBounds
Auto Trait Implementations§
impl Freeze for CameraBounds
impl RefUnwindSafe for CameraBounds
impl Send for CameraBounds
impl Sync for CameraBounds
impl Unpin for CameraBounds
impl UnsafeUnpin for CameraBounds
impl UnwindSafe for CameraBounds
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