pub enum OffMapPolicy {
Preserve,
ClampToEdge,
}Expand description
Treatment of finite points outside the closed world rectangle.
Variants§
Preserve
Preserve the projected location, which can be outside the panel.
Return Unrepresentable rather than an infinite f32 position.
ClampToEdge
Put the marker on the world-boundary ray intersection. This stays inside the map’s closed bounds, including under rotation and letterboxing.
Trait Implementations§
Source§impl Clone for OffMapPolicy
impl Clone for OffMapPolicy
Source§fn clone(&self) -> OffMapPolicy
fn clone(&self) -> OffMapPolicy
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 moreSource§impl Debug for OffMapPolicy
impl Debug for OffMapPolicy
Source§impl PartialEq for OffMapPolicy
impl PartialEq for OffMapPolicy
impl Copy for OffMapPolicy
impl Eq for OffMapPolicy
impl StructuralPartialEq for OffMapPolicy
Auto Trait Implementations§
impl Freeze for OffMapPolicy
impl RefUnwindSafe for OffMapPolicy
impl Send for OffMapPolicy
impl Sync for OffMapPolicy
impl Unpin for OffMapPolicy
impl UnwindSafe for OffMapPolicy
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