#[non_exhaustive]pub struct InputMetrics {
pub min_height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
}Expand description
Text input field metrics.
Defines minimum height and padding for single-line text inputs. All values are in logical pixels.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.min_height: Option<f32>Minimum input field height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside the input field.
padding_vertical: Option<f32>Vertical padding inside the input field.
Implementations§
Source§impl InputMetrics
impl InputMetrics
Trait Implementations§
Source§impl Clone for InputMetrics
impl Clone for InputMetrics
Source§fn clone(&self) -> InputMetrics
fn clone(&self) -> InputMetrics
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 InputMetrics
impl Debug for InputMetrics
Source§impl Default for InputMetrics
impl Default for InputMetrics
Source§fn default() -> InputMetrics
fn default() -> InputMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InputMetricswhere
InputMetrics: Default,
impl<'de> Deserialize<'de> for InputMetricswhere
InputMetrics: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InputMetrics
impl PartialEq for InputMetrics
Source§impl Serialize for InputMetrics
impl Serialize for InputMetrics
impl StructuralPartialEq for InputMetrics
Auto Trait Implementations§
impl Freeze for InputMetrics
impl RefUnwindSafe for InputMetrics
impl Send for InputMetrics
impl Sync for InputMetrics
impl Unpin for InputMetrics
impl UnsafeUnpin for InputMetrics
impl UnwindSafe for InputMetrics
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