Struct MapViewportOptions
#[non_exhaustive]pub struct MapViewportOptions {
pub north_orientation: Option<NorthOrientation>,
pub constrain_mode: Option<ConstrainMode>,
pub viewport_mode: Option<ViewportMode>,
pub frustum_offset: Option<EdgeInsets>,
}Expand description
Live map viewport and render-transform controls.
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.north_orientation: Option<NorthOrientation>§constrain_mode: Option<ConstrainMode>§viewport_mode: Option<ViewportMode>§frustum_offset: Option<EdgeInsets>Implementations§
§impl MapViewportOptions
impl MapViewportOptions
pub fn new() -> MapViewportOptions
pub fn with_north_orientation( self, north_orientation: NorthOrientation, ) -> MapViewportOptions
pub fn with_constrain_mode( self, constrain_mode: ConstrainMode, ) -> MapViewportOptions
pub fn with_viewport_mode( self, viewport_mode: ViewportMode, ) -> MapViewportOptions
pub fn with_frustum_offset( self, frustum_offset: EdgeInsets, ) -> MapViewportOptions
Trait Implementations§
§impl Clone for MapViewportOptions
impl Clone for MapViewportOptions
§fn clone(&self) -> MapViewportOptions
fn clone(&self) -> MapViewportOptions
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 MapViewportOptions
impl Debug for MapViewportOptions
§impl Default for MapViewportOptions
impl Default for MapViewportOptions
§fn default() -> MapViewportOptions
fn default() -> MapViewportOptions
Returns the “default value” for a type. Read more
§impl PartialEq for MapViewportOptions
impl PartialEq for MapViewportOptions
impl StructuralPartialEq for MapViewportOptions
Auto Trait Implementations§
impl Freeze for MapViewportOptions
impl RefUnwindSafe for MapViewportOptions
impl Send for MapViewportOptions
impl Sync for MapViewportOptions
impl Unpin for MapViewportOptions
impl UnsafeUnpin for MapViewportOptions
impl UnwindSafe for MapViewportOptions
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