Enum web_sys::OrientationLockType
source · [−]pub enum OrientationLockType {
Any,
Natural,
Landscape,
Portrait,
PortraitPrimary,
PortraitSecondary,
LandscapePrimary,
LandscapeSecondary,
// some variants omitted
}
Expand description
The OrientationLockType
enum.
This API requires the following crate features to be activated: OrientationLockType
Variants
Any
Natural
Landscape
Portrait
PortraitPrimary
PortraitSecondary
LandscapePrimary
LandscapeSecondary
Implementations
sourceimpl OrientationLockType
impl OrientationLockType
pub fn from_js_value(obj: &JsValue) -> Option<OrientationLockType>
Trait Implementations
sourceimpl Clone for OrientationLockType
impl Clone for OrientationLockType
sourcefn clone(&self) -> OrientationLockType
fn clone(&self) -> OrientationLockType
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 OrientationLockType
impl Debug for OrientationLockType
sourceimpl From<OrientationLockType> for JsValue
impl From<OrientationLockType> for JsValue
sourcefn from(obj: OrientationLockType) -> JsValue
fn from(obj: OrientationLockType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for OrientationLockType
impl FromWasmAbi for OrientationLockType
sourceimpl IntoWasmAbi for OrientationLockType
impl IntoWasmAbi for OrientationLockType
sourceimpl WasmDescribe for OrientationLockType
impl WasmDescribe for OrientationLockType
impl Copy for OrientationLockType
impl Eq for OrientationLockType
impl StructuralEq for OrientationLockType
impl StructuralPartialEq for OrientationLockType
Auto Trait Implementations
impl RefUnwindSafe for OrientationLockType
impl Send for OrientationLockType
impl Sync for OrientationLockType
impl Unpin for OrientationLockType
impl UnwindSafe for OrientationLockType
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
sourceimpl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for T where
T: IntoWasmAbi,
type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as IntoWasmAbi::Abi
sourcefn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more