Struct BoundOptions
#[non_exhaustive]pub struct BoundOptions {
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
Optional map camera constraint fields.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bounds: Option<LatLngBounds>§min_zoom: Option<f64>§max_zoom: Option<f64>§min_pitch: Option<f64>§max_pitch: Option<f64>Implementations§
§impl BoundOptions
impl BoundOptions
pub fn new() -> BoundOptions
pub fn with_bounds(self, bounds: LatLngBounds) -> BoundOptions
pub fn with_min_zoom(self, min_zoom: f64) -> BoundOptions
pub fn with_max_zoom(self, max_zoom: f64) -> BoundOptions
pub fn with_min_pitch(self, min_pitch: f64) -> BoundOptions
pub fn with_max_pitch(self, max_pitch: f64) -> BoundOptions
Trait Implementations§
§impl Clone for BoundOptions
impl Clone for BoundOptions
§fn clone(&self) -> BoundOptions
fn clone(&self) -> BoundOptions
Returns a duplicate 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 more§impl Debug for BoundOptions
impl Debug for BoundOptions
§impl Default for BoundOptions
impl Default for BoundOptions
§fn default() -> BoundOptions
fn default() -> BoundOptions
Returns the “default value” for a type. Read more
§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