pub struct BoxWithConstraintsScopeImpl { /* private fields */ }Expand description
Concrete implementation of BoxWithConstraintsScope.
Implementations§
Source§impl BoxWithConstraintsScopeImpl
impl BoxWithConstraintsScopeImpl
pub fn new(constraints: Constraints) -> Self
pub fn with_density(constraints: Constraints, density: f32) -> Self
pub fn to_px(&self, dp: Dp) -> f32
pub fn density(&self) -> f32
Trait Implementations§
Source§impl BoxWithConstraintsScope for BoxWithConstraintsScopeImpl
impl BoxWithConstraintsScope for BoxWithConstraintsScopeImpl
fn constraints(&self) -> Constraints
fn min_width(&self) -> Dp
fn max_width(&self) -> Dp
fn min_height(&self) -> Dp
fn max_height(&self) -> Dp
Source§impl Clone for BoxWithConstraintsScopeImpl
impl Clone for BoxWithConstraintsScopeImpl
Source§fn clone(&self) -> BoxWithConstraintsScopeImpl
fn clone(&self) -> BoxWithConstraintsScopeImpl
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 BoxWithConstraintsScopeImpl
impl Debug for BoxWithConstraintsScopeImpl
impl Copy for BoxWithConstraintsScopeImpl
impl StructuralPartialEq for BoxWithConstraintsScopeImpl
Auto Trait Implementations§
impl Freeze for BoxWithConstraintsScopeImpl
impl RefUnwindSafe for BoxWithConstraintsScopeImpl
impl Send for BoxWithConstraintsScopeImpl
impl Sync for BoxWithConstraintsScopeImpl
impl Unpin for BoxWithConstraintsScopeImpl
impl UnwindSafe for BoxWithConstraintsScopeImpl
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