pub struct ScreenOrientation { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime only.Expand description
Screen orientation.
Implementations§
Source§impl ScreenOrientation
impl ScreenOrientation
pub fn new(type: ScreenOrientationType, angle: u32) -> Self
Sourcepub fn type(&self) -> &ScreenOrientationType
pub fn type(&self) -> &ScreenOrientationType
Orientation type.
Trait Implementations§
Source§impl Clone for ScreenOrientation
impl Clone for ScreenOrientation
Source§fn clone(&self) -> ScreenOrientation
fn clone(&self) -> ScreenOrientation
Returns a duplicate 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 ScreenOrientation
impl Debug for ScreenOrientation
Source§impl<'de> Deserialize<'de> for ScreenOrientation
impl<'de> Deserialize<'de> for ScreenOrientation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ScreenOrientation
impl RefUnwindSafe for ScreenOrientation
impl Send for ScreenOrientation
impl Sync for ScreenOrientation
impl Unpin for ScreenOrientation
impl UnwindSafe for ScreenOrientation
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more