Enum web_sys::OrientationType
source · [−]pub enum OrientationType {
PortraitPrimary,
PortraitSecondary,
LandscapePrimary,
LandscapeSecondary,
// some variants omitted
}
Expand description
The OrientationType
enum.
This API requires the following crate features to be activated: OrientationType
Variants
PortraitPrimary
PortraitSecondary
LandscapePrimary
LandscapeSecondary
Implementations
sourceimpl OrientationType
impl OrientationType
pub fn from_js_value(obj: &JsValue) -> Option<OrientationType>
Trait Implementations
sourceimpl Clone for OrientationType
impl Clone for OrientationType
sourcefn clone(&self) -> OrientationType
fn clone(&self) -> OrientationType
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 OrientationType
impl Debug for OrientationType
sourceimpl From<OrientationType> for JsValue
impl From<OrientationType> for JsValue
sourcefn from(obj: OrientationType) -> JsValue
fn from(obj: OrientationType) -> JsValue
Converts to this type from the input type.
sourceimpl FromWasmAbi for OrientationType
impl FromWasmAbi for OrientationType
sourceimpl IntoWasmAbi for OrientationType
impl IntoWasmAbi for OrientationType
sourceimpl OptionFromWasmAbi for OrientationType
impl OptionFromWasmAbi for OrientationType
sourceimpl OptionIntoWasmAbi for OrientationType
impl OptionIntoWasmAbi for OrientationType
sourceimpl PartialEq<OrientationType> for OrientationType
impl PartialEq<OrientationType> for OrientationType
sourceimpl WasmDescribe for OrientationType
impl WasmDescribe for OrientationType
impl Copy for OrientationType
impl Eq for OrientationType
impl StructuralEq for OrientationType
impl StructuralPartialEq for OrientationType
Auto Trait Implementations
impl RefUnwindSafe for OrientationType
impl Send for OrientationType
impl Sync for OrientationType
impl Unpin for OrientationType
impl UnwindSafe for OrientationType
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more