#[non_exhaustive]pub enum ProjectionMode {
Perspective,
Orthographic,
}Expand description
-projection MODE value. Selects perspective vs. orthographic
projection for the 3D→raster renderer. Default is
Perspective — the IM convention for vector
rasterisation matches what most 3D viewers ship.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Perspective
Perspective projection — objects shrink with distance.
Orthographic
Orthographic projection — parallel rays, no foreshortening. Useful for technical drawings / part diagrams.
Implementations§
Trait Implementations§
Source§impl Clone for ProjectionMode
impl Clone for ProjectionMode
impl Copy for ProjectionMode
Source§impl Debug for ProjectionMode
impl Debug for ProjectionMode
Source§impl Default for ProjectionMode
impl Default for ProjectionMode
impl Eq for ProjectionMode
Source§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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.