#[non_exhaustive]pub struct ListItemMetrics {
pub height: Option<f32>,
pub padding_horizontal: Option<f32>,
pub padding_vertical: Option<f32>,
}Expand description
List item / row metrics.
Defines row height and padding for list views and tables. 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.height: Option<f32>Row height in logical pixels.
padding_horizontal: Option<f32>Horizontal padding inside the list item.
padding_vertical: Option<f32>Vertical padding inside the list item.
Implementations§
Source§impl ListItemMetrics
impl ListItemMetrics
Trait Implementations§
Source§impl Clone for ListItemMetrics
impl Clone for ListItemMetrics
Source§fn clone(&self) -> ListItemMetrics
fn clone(&self) -> ListItemMetrics
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 ListItemMetrics
impl Debug for ListItemMetrics
Source§impl Default for ListItemMetrics
impl Default for ListItemMetrics
Source§fn default() -> ListItemMetrics
fn default() -> ListItemMetrics
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListItemMetricswhere
ListItemMetrics: Default,
impl<'de> Deserialize<'de> for ListItemMetricswhere
ListItemMetrics: 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 ListItemMetrics
impl PartialEq for ListItemMetrics
Source§impl Serialize for ListItemMetrics
impl Serialize for ListItemMetrics
impl StructuralPartialEq for ListItemMetrics
Auto Trait Implementations§
impl Freeze for ListItemMetrics
impl RefUnwindSafe for ListItemMetrics
impl Send for ListItemMetrics
impl Sync for ListItemMetrics
impl Unpin for ListItemMetrics
impl UnsafeUnpin for ListItemMetrics
impl UnwindSafe for ListItemMetrics
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