pub struct DisplayFeature<'a> { /* private fields */ }Implementations§
Source§impl<'a> DisplayFeature<'a>
impl<'a> DisplayFeature<'a>
Sourcepub fn builder(
orientation: impl Into<Cow<'a, str>>,
offset: i32,
mask_length: u64,
) -> DisplayFeatureBuilder<'a>
pub fn builder( orientation: impl Into<Cow<'a, str>>, offset: i32, mask_length: u64, ) -> DisplayFeatureBuilder<'a>
Creates a builder for this type with the required parameters:
orientation: Orientation of a display feature in relation to screenoffset: The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.mask_length: 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.
Sourcepub fn orientation(&self) -> &str
pub fn orientation(&self) -> &str
Orientation of a display feature in relation to screen
Sourcepub fn offset(&self) -> i32
pub fn offset(&self) -> i32
The offset from the screen origin in either the x (for vertical orientation) or y (for horizontal orientation) direction.
Sourcepub fn mask_length(&self) -> u64
pub fn mask_length(&self) -> u64
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<'a> Clone for DisplayFeature<'a>
impl<'a> Clone for DisplayFeature<'a>
Source§fn clone(&self) -> DisplayFeature<'a>
fn clone(&self) -> DisplayFeature<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for DisplayFeature<'a>
impl<'a> Debug for DisplayFeature<'a>
Source§impl<'a> Default for DisplayFeature<'a>
impl<'a> Default for DisplayFeature<'a>
Source§fn default() -> DisplayFeature<'a>
fn default() -> DisplayFeature<'a>
Returns the “default value” for a type. Read more
Source§impl<'de, 'a> Deserialize<'de> for DisplayFeature<'a>
impl<'de, 'a> Deserialize<'de> for DisplayFeature<'a>
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<'a> Freeze for DisplayFeature<'a>
impl<'a> RefUnwindSafe for DisplayFeature<'a>
impl<'a> Send for DisplayFeature<'a>
impl<'a> Sync for DisplayFeature<'a>
impl<'a> Unpin for DisplayFeature<'a>
impl<'a> UnsafeUnpin for DisplayFeature<'a>
impl<'a> UnwindSafe for DisplayFeature<'a>
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