pub enum ConstrainMode {
None,
HeightOnly,
WidthAndHeight,
Screen,
Unknown(u32),
}Expand description
How the map keeps the camera within the world or within its bounds.
See mln_constrain_mode in the
C API reference.
Variants§
None
HeightOnly
Keeps the world filling the view from top to bottom.
WidthAndHeight
Keeps the world filling the view in both directions.
Screen
Keeps the whole view inside the bounds from MapHandle::set_bounds().
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for ConstrainMode
impl Clone for ConstrainMode
Source§fn clone(&self) -> ConstrainMode
fn clone(&self) -> ConstrainMode
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 ConstrainMode
Source§impl Debug for ConstrainMode
impl Debug for ConstrainMode
Source§impl Default for ConstrainMode
impl Default for ConstrainMode
impl Eq for ConstrainMode
Source§impl Hash for ConstrainMode
impl Hash for ConstrainMode
Source§impl PartialEq for ConstrainMode
impl PartialEq for ConstrainMode
impl StructuralPartialEq for ConstrainMode
Auto Trait Implementations§
impl Freeze for ConstrainMode
impl RefUnwindSafe for ConstrainMode
impl Send for ConstrainMode
impl Sync for ConstrainMode
impl Unpin for ConstrainMode
impl UnsafeUnpin for ConstrainMode
impl UnwindSafe for ConstrainMode
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