#[non_exhaustive]pub enum Projection {
Rectilinear,
Equirectangular {
fov: Option<f64>,
},
Unknown(UnknownProjection),
}Expand description
How a rendition’s decoded picture maps onto the viewer’s field of view.
Absent means Rectilinear. An unrecognized kind decodes to
Projection::Unknown instead of failing, and a consumer treats it as absent.
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.
Rectilinear
A flat picture.
Equirectangular
Longitude linear across the width and latitude down the height, the full 180 degrees, surrounding a viewer at its centre.
Fields
Unknown(UnknownProjection)
A projection this build does not recognize, preserved verbatim.
Trait Implementations§
Source§impl Clone for Projection
impl Clone for Projection
Source§impl Debug for Projection
impl Debug for Projection
Source§impl Default for Projection
impl Default for Projection
Source§impl<'de> Deserialize<'de> for Projection
impl<'de> Deserialize<'de> for Projection
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Projection
impl PartialEq for Projection
Source§impl Serialize for Projection
impl Serialize for Projection
impl StructuralPartialEq for Projection
Auto Trait Implementations§
impl Freeze for Projection
impl RefUnwindSafe for Projection
impl Send for Projection
impl Sync for Projection
impl Unpin for Projection
impl UnsafeUnpin for Projection
impl UnwindSafe for Projection
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