Enum simconnect_sdk::ViewType
source · [−]#[repr(u32)]
pub enum ViewType {
None,
Cockpit2D,
CockpitVirtual,
Orthogonal,
}
Expand description
Cockpit view type.
Variants
None
No cockpit view.
Cockpit2D
2D Panels in cockpit view.
CockpitVirtual
Virtual (3D) panels in cockpit view.
Orthogonal
Orthogonal (map) view.
Trait Implementations
sourceimpl TryFrom<u32> for ViewType
impl TryFrom<u32> for ViewType
type Error = TryFromPrimitiveError<ViewType>
type Error = TryFromPrimitiveError<ViewType>
The type returned in the event of a conversion error.
sourcefn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
fn try_from(number: u32) -> Result<Self, TryFromPrimitiveError<Self>>
Performs the conversion.
sourceimpl TryFromPrimitive for ViewType
impl TryFromPrimitive for ViewType
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for ViewType
impl Eq for ViewType
impl StructuralEq for ViewType
impl StructuralPartialEq for ViewType
Auto Trait Implementations
impl RefUnwindSafe for ViewType
impl Send for ViewType
impl Sync for ViewType
impl Unpin for ViewType
impl UnwindSafe for ViewType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more