pub struct ComponentSize {
pub width: f64,
pub height: f64,
}
Expand description
A struct containing the width and height of the component
Fields§
§width: f64
Width of the component in pixels
height: f64
Height of the component in pixels
Trait Implementations§
Source§impl Clone for ComponentSize
impl Clone for ComponentSize
Source§fn clone(&self) -> ComponentSize
fn clone(&self) -> ComponentSize
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 ComponentSize
impl Debug for ComponentSize
Source§impl Default for ComponentSize
impl Default for ComponentSize
Source§fn default() -> ComponentSize
fn default() -> ComponentSize
Returns the “default value” for a type. Read more
Source§impl PartialEq for ComponentSize
impl PartialEq for ComponentSize
impl StructuralPartialEq for ComponentSize
Auto Trait Implementations§
impl Freeze for ComponentSize
impl RefUnwindSafe for ComponentSize
impl Send for ComponentSize
impl Sync for ComponentSize
impl Unpin for ComponentSize
impl UnwindSafe for ComponentSize
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