Enum BoundsConstraint
pub enum BoundsConstraint {
Bounded(LatLngBounds),
Unbounded,
}Expand description
Geographic constraint applied to the map camera center.
Variants§
Bounded(LatLngBounds)
Keeps the camera center inside the given bounds.
Unbounded
Leaves the camera center unconstrained, so the map pans freely across the antimeridian. This differs from world bounds of -90/-180 to 90/180, which clamp longitude to that range.
Trait Implementations§
§impl Clone for BoundsConstraint
impl Clone for BoundsConstraint
§fn clone(&self) -> BoundsConstraint
fn clone(&self) -> BoundsConstraint
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 BoundsConstraint
impl Debug for BoundsConstraint
§impl PartialEq for BoundsConstraint
impl PartialEq for BoundsConstraint
impl Copy for BoundsConstraint
impl StructuralPartialEq for BoundsConstraint
Auto Trait Implementations§
impl Freeze for BoundsConstraint
impl RefUnwindSafe for BoundsConstraint
impl Send for BoundsConstraint
impl Sync for BoundsConstraint
impl Unpin for BoundsConstraint
impl UnsafeUnpin for BoundsConstraint
impl UnwindSafe for BoundsConstraint
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