Enum web_sys::OrientationLockType
source · pub enum OrientationLockType {
Any,
Natural,
Landscape,
Portrait,
PortraitPrimary,
PortraitSecondary,
LandscapePrimary,
LandscapeSecondary,
// some variants omitted
}
Variants§
Any
Natural
Landscape
Portrait
PortraitPrimary
PortraitSecondary
LandscapePrimary
LandscapeSecondary
Implementations§
source§impl OrientationLockType
impl OrientationLockType
pub fn from_js_value(obj: &JsValue) -> Option<OrientationLockType>
Trait Implementations§
source§impl Clone for OrientationLockType
impl Clone for OrientationLockType
source§fn clone(&self) -> OrientationLockType
fn clone(&self) -> OrientationLockType
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OrientationLockType
impl Debug for OrientationLockType
source§impl From<OrientationLockType> for JsValue
impl From<OrientationLockType> for JsValue
source§fn from(obj: OrientationLockType) -> JsValue
fn from(obj: OrientationLockType) -> JsValue
Converts to this type from the input type.
source§impl FromWasmAbi for OrientationLockType
impl FromWasmAbi for OrientationLockType
source§impl IntoWasmAbi for OrientationLockType
impl IntoWasmAbi for OrientationLockType
source§impl PartialEq<OrientationLockType> for OrientationLockType
impl PartialEq<OrientationLockType> for OrientationLockType
source§fn eq(&self, other: &OrientationLockType) -> bool
fn eq(&self, other: &OrientationLockType) -> bool
impl Copy 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§
source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::Abi
source§fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self, extra: &mut dyn Stack) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi
, except that it may throw and never
return in the case of Err
. Read more