Enum ndk::configuration::Orientation
source · [−]#[repr(u32)]
pub enum Orientation {
Any,
Port,
Land,
Square,
}
Variants
Any
Port
Land
Square
Trait Implementations
sourceimpl Clone for Orientation
impl Clone for Orientation
sourcefn clone(&self) -> Orientation
fn clone(&self) -> Orientation
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Orientation
impl Debug for Orientation
sourceimpl From<Orientation> for u32
impl From<Orientation> for u32
sourcefn from(enum_value: Orientation) -> Self
fn from(enum_value: Orientation) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Orientation> for Orientation
impl PartialEq<Orientation> for Orientation
sourceimpl TryFrom<u32> for Orientation
impl TryFrom<u32> for Orientation
type Error = TryFromPrimitiveError<Orientation>
type Error = TryFromPrimitiveError<Orientation>
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 Orientation
impl TryFromPrimitive for Orientation
type Primitive = u32
const NAME: &'static str = _
fn try_from_primitive(
number: Self::Primitive
) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for Orientation
impl Eq for Orientation
impl StructuralEq for Orientation
impl StructuralPartialEq for Orientation
Auto Trait Implementations
impl RefUnwindSafe for Orientation
impl Send for Orientation
impl Sync for Orientation
impl Unpin for Orientation
impl UnwindSafe for Orientation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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