Struct MapOptions
#[non_exhaustive]pub struct MapOptions {
pub width: u32,
pub height: u32,
pub scale_factor: f64,
pub mode: MapMode,
}Expand description
Options used when creating a map.
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.width: u32§height: u32§scale_factor: f64§mode: MapModeImplementations§
§impl MapOptions
impl MapOptions
pub fn new(width: u32, height: u32, scale_factor: f64) -> MapOptions
pub fn with_mode(self, mode: MapMode) -> MapOptions
Trait Implementations§
§impl Clone for MapOptions
impl Clone for MapOptions
§fn clone(&self) -> MapOptions
fn clone(&self) -> MapOptions
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 MapOptions
impl Debug for MapOptions
§impl Default for MapOptions
impl Default for MapOptions
§fn default() -> MapOptions
fn default() -> MapOptions
Returns the “default value” for a type. Read more
§impl PartialEq for MapOptions
impl PartialEq for MapOptions
impl StructuralPartialEq for MapOptions
Auto Trait Implementations§
impl Freeze for MapOptions
impl RefUnwindSafe for MapOptions
impl Send for MapOptions
impl Sync for MapOptions
impl Unpin for MapOptions
impl UnsafeUnpin for MapOptions
impl UnwindSafe for MapOptions
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