pub enum CameraTarget {
View {
center: LngLat,
zoom: f64,
bearing: Option<f64>,
},
Bounds {
sw: LngLat,
ne: LngLat,
padding: f64,
},
}Variants§
View
A view: None keeps the current bearing.
Bounds
The north-up view that shows a box whole, padding points clear around it.
Trait Implementations§
Source§impl Clone for CameraTarget
impl Clone for CameraTarget
impl Copy for CameraTarget
Source§impl Debug for CameraTarget
impl Debug for CameraTarget
Source§impl PartialEq for CameraTarget
impl PartialEq for CameraTarget
impl StructuralPartialEq for CameraTarget
Auto Trait Implementations§
impl Forget for CameraTarget
impl Freeze for CameraTarget
impl Move for CameraTarget
impl RefUnwindSafe for CameraTarget
impl Send for CameraTarget
impl Sync for CameraTarget
impl Unpin for CameraTarget
impl UnsafeUnpin for CameraTarget
impl UnwindSafe for CameraTarget
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