pub struct SafeAreaInsetsBuilder { /* private fields */ }Expand description
Builder for SafeAreaInsets.
Implementations§
Source§impl SafeAreaInsetsBuilder
impl SafeAreaInsetsBuilder
Sourcepub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn top<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-inset-top.
Sourcepub fn top_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn top_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-max-inset-top.
Sourcepub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn left<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-inset-left.
Sourcepub fn left_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn left_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-max-inset-left.
Sourcepub fn bottom<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn bottom<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-inset-bottom.
Sourcepub fn bottom_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn bottom_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-max-inset-bottom.
Sourcepub fn right<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn right<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-inset-right.
Sourcepub fn right_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
pub fn right_max<VALUE: Into<JsUInt>>(&mut self, value: VALUE) -> &mut Self
Overrides safe-area-max-inset-right.
Sourcepub fn build(&self) -> Result<SafeAreaInsets, SafeAreaInsetsBuilderError>
pub fn build(&self) -> Result<SafeAreaInsets, SafeAreaInsetsBuilderError>
Trait Implementations§
Source§impl Clone for SafeAreaInsetsBuilder
impl Clone for SafeAreaInsetsBuilder
Source§fn clone(&self) -> SafeAreaInsetsBuilder
fn clone(&self) -> SafeAreaInsetsBuilder
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 moreAuto Trait Implementations§
impl Freeze for SafeAreaInsetsBuilder
impl RefUnwindSafe for SafeAreaInsetsBuilder
impl Send for SafeAreaInsetsBuilder
impl Sync for SafeAreaInsetsBuilder
impl Unpin for SafeAreaInsetsBuilder
impl UnsafeUnpin for SafeAreaInsetsBuilder
impl UnwindSafe for SafeAreaInsetsBuilder
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