pub struct SubcomposeScope {
pub min_width: f32,
pub max_width: f32,
pub min_height: f32,
pub max_height: f32,
}Expand description
The constraints that will be passed to a subcomposed child. Values are in
device-independent pixels (dp), matching the units used by Modifier.
Fields§
§min_width: f32§max_width: f32§min_height: f32§max_height: f32Implementations§
Trait Implementations§
Source§impl Clone for SubcomposeScope
impl Clone for SubcomposeScope
Source§fn clone(&self) -> SubcomposeScope
fn clone(&self) -> SubcomposeScope
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 SubcomposeScope
Source§impl Debug for SubcomposeScope
impl Debug for SubcomposeScope
Source§impl PartialEq for SubcomposeScope
impl PartialEq for SubcomposeScope
Source§fn eq(&self, other: &SubcomposeScope) -> bool
fn eq(&self, other: &SubcomposeScope) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SubcomposeScope
Auto Trait Implementations§
impl Freeze for SubcomposeScope
impl RefUnwindSafe for SubcomposeScope
impl Send for SubcomposeScope
impl Sync for SubcomposeScope
impl Unpin for SubcomposeScope
impl UnsafeUnpin for SubcomposeScope
impl UnwindSafe for SubcomposeScope
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