pub enum ControlSize {
Mini,
Small,
Regular,
Large,
}Expand description
How large the controls in this part of the tree are, in the sense SwiftUI’s controlSize means: a
preference the container expresses and each control interprets, not a size any one of them is given.
Variants§
Mini
Dense chrome — a toolbar, an inspector, a status bar.
Small
Regular
Large
A touch target, or a control that is the point of the screen it is on.
Implementations§
Trait Implementations§
Source§impl Clone for ControlSize
impl Clone for ControlSize
Source§fn clone(&self) -> ControlSize
fn clone(&self) -> ControlSize
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 ControlSize
Source§impl Debug for ControlSize
impl Debug for ControlSize
Source§impl Default for ControlSize
impl Default for ControlSize
Source§fn default() -> ControlSize
fn default() -> ControlSize
Returns the “default value” for a type. Read more
impl Eq for ControlSize
Source§impl PartialEq for ControlSize
impl PartialEq for ControlSize
impl StructuralPartialEq for ControlSize
Auto Trait Implementations§
impl Freeze for ControlSize
impl RefUnwindSafe for ControlSize
impl Send for ControlSize
impl Sync for ControlSize
impl Unpin for ControlSize
impl UnsafeUnpin for ControlSize
impl UnwindSafe for ControlSize
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