Struct ProjectionMode
#[non_exhaustive]pub struct ProjectionMode {
pub axonometric: Option<bool>,
pub x_skew: Option<f64>,
pub y_skew: Option<f64>,
}Expand description
Axonometric rendering options for the live map render transform.
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.axonometric: Option<bool>§x_skew: Option<f64>§y_skew: Option<f64>Implementations§
§impl ProjectionMode
impl ProjectionMode
pub fn new() -> ProjectionMode
pub fn with_axonometric(self, axonometric: bool) -> ProjectionMode
pub fn with_x_skew(self, x_skew: f64) -> ProjectionMode
pub fn with_y_skew(self, y_skew: f64) -> ProjectionMode
Trait Implementations§
§impl Clone for ProjectionMode
impl Clone for ProjectionMode
§fn clone(&self) -> ProjectionMode
fn clone(&self) -> ProjectionMode
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 ProjectionMode
impl Debug for ProjectionMode
§impl Default for ProjectionMode
impl Default for ProjectionMode
§fn default() -> ProjectionMode
fn default() -> ProjectionMode
Returns the “default value” for a type. Read more
§impl PartialEq for ProjectionMode
impl PartialEq for ProjectionMode
impl StructuralPartialEq for ProjectionMode
Auto Trait Implementations§
impl Freeze for ProjectionMode
impl RefUnwindSafe for ProjectionMode
impl Send for ProjectionMode
impl Sync for ProjectionMode
impl Unpin for ProjectionMode
impl UnsafeUnpin for ProjectionMode
impl UnwindSafe for ProjectionMode
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