#[repr(C)]pub struct SafeAreaInsets {
pub top: f64,
pub right: f64,
pub bottom: f64,
pub left: f64,
}Expand description
Insets of the platform’s safe rectangle, in logical window pixels.
Reported by the native iOS/iPadOS host. These are live window data, not persisted program state, and do not automatically inset any application.
Fields§
§top: f64§right: f64§bottom: f64§left: f64Trait Implementations§
Source§impl Clone for SafeAreaInsets
impl Clone for SafeAreaInsets
Source§fn clone(&self) -> SafeAreaInsets
fn clone(&self) -> SafeAreaInsets
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 moreimpl Copy for SafeAreaInsets
Source§impl Debug for SafeAreaInsets
impl Debug for SafeAreaInsets
Source§impl Default for SafeAreaInsets
impl Default for SafeAreaInsets
Source§fn default() -> SafeAreaInsets
fn default() -> SafeAreaInsets
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SafeAreaInsets
impl<'de> Deserialize<'de> for SafeAreaInsets
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SafeAreaInsets, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SafeAreaInsets, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Interpolatable for SafeAreaInsets
impl Interpolatable for SafeAreaInsets
Source§fn interpolate(&self, _other: &Self, _t: f64) -> Self
fn interpolate(&self, _other: &Self, _t: f64) -> Self
Source§impl PartialEq for SafeAreaInsets
impl PartialEq for SafeAreaInsets
impl StructuralPartialEq for SafeAreaInsets
Auto Trait Implementations§
impl Freeze for SafeAreaInsets
impl RefUnwindSafe for SafeAreaInsets
impl Send for SafeAreaInsets
impl Sync for SafeAreaInsets
impl Unpin for SafeAreaInsets
impl UnsafeUnpin for SafeAreaInsets
impl UnwindSafe for SafeAreaInsets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> PropertyValue for T
Source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
Source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.