pub struct DisplayFeature { /* private fields */ }Available on crate features
Emulation and DOM and Page and Runtime only.Implementations§
Source§impl DisplayFeature
impl DisplayFeature
pub fn new( orientation: DisplayFeatureOrientation, offset: u32, mask_length: u32, ) -> Self
Sourcepub fn orientation(&self) -> &DisplayFeatureOrientation
pub fn orientation(&self) -> &DisplayFeatureOrientation
Orientation of a display feature in relation to screen
Sourcepub fn offset(&self) -> u32
pub fn offset(&self) -> u32
The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.
Sourcepub fn mask_length(&self) -> u32
pub fn mask_length(&self) -> u32
A display feature may mask content such that it is not physically displayed - this length along with the offset describes this area. A display feature that only splits content will have a 0 mask_length.
Trait Implementations§
Source§impl Clone for DisplayFeature
impl Clone for DisplayFeature
Source§fn clone(&self) -> DisplayFeature
fn clone(&self) -> DisplayFeature
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 DisplayFeature
impl Debug for DisplayFeature
Source§impl<'de> Deserialize<'de> for DisplayFeature
impl<'de> Deserialize<'de> for DisplayFeature
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 DisplayFeature
impl RefUnwindSafe for DisplayFeature
impl Send for DisplayFeature
impl Sync for DisplayFeature
impl Unpin for DisplayFeature
impl UnwindSafe for DisplayFeature
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