pub struct MeasuredBox {
pub width: Option<f64>,
pub height: Option<f64>,
pub padding_horizontal: Option<f64>,
pub padding_vertical: Option<f64>,
pub border_width: Option<f64>,
pub border_radius: Option<f64>,
}Expand description
What a painter reports after measuring the control it drew.
Fields§
§width: Option<f64>§height: Option<f64>§padding_horizontal: Option<f64>§padding_vertical: Option<f64>§border_width: Option<f64>§border_radius: Option<f64>Trait Implementations§
Source§impl Clone for MeasuredBox
impl Clone for MeasuredBox
impl Copy for MeasuredBox
Source§impl Debug for MeasuredBox
impl Debug for MeasuredBox
Source§impl Default for MeasuredBox
impl Default for MeasuredBox
Source§impl<'de> Deserialize<'de> for MeasuredBox
impl<'de> Deserialize<'de> for MeasuredBox
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 MeasuredBox
impl PartialEq for MeasuredBox
Source§impl Serialize for MeasuredBox
impl Serialize for MeasuredBox
impl StructuralPartialEq for MeasuredBox
Auto Trait Implementations§
impl Freeze for MeasuredBox
impl RefUnwindSafe for MeasuredBox
impl Send for MeasuredBox
impl Sync for MeasuredBox
impl Unpin for MeasuredBox
impl UnsafeUnpin for MeasuredBox
impl UnwindSafe for MeasuredBox
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