pub struct CameraFitOptions {
pub padding: Option<EdgeInsets>,
pub bearing: Option<f64>,
pub pitch: Option<f64>,
}Expand description
Options for finding the camera that fits an area.
See mln_camera_fit_options in the
C API reference.
Fields§
§padding: Option<EdgeInsets>Space to leave between the area and each edge of the map. The left and right insets must add up to less than the map’s width, and the top and bottom to less than its height.
bearing: Option<f64>The rotation from north, in degrees.
pitch: Option<f64>The tilt toward the horizon, in degrees.
Trait Implementations§
Source§impl Clone for CameraFitOptions
impl Clone for CameraFitOptions
Source§fn clone(&self) -> CameraFitOptions
fn clone(&self) -> CameraFitOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CameraFitOptions
Source§impl Debug for CameraFitOptions
impl Debug for CameraFitOptions
Source§impl Default for CameraFitOptions
impl Default for CameraFitOptions
Source§fn default() -> CameraFitOptions
fn default() -> CameraFitOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for CameraFitOptions
impl PartialEq for CameraFitOptions
impl StructuralPartialEq for CameraFitOptions
Auto Trait Implementations§
impl Freeze for CameraFitOptions
impl RefUnwindSafe for CameraFitOptions
impl Send for CameraFitOptions
impl Sync for CameraFitOptions
impl Unpin for CameraFitOptions
impl UnsafeUnpin for CameraFitOptions
impl UnwindSafe for CameraFitOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more