pub struct SizeOverride {
pub width: Option<f64>,
pub height: Option<f64>,
}Expand description
Fixed-size overrides for an element. None means “size to content / fill”.
Fields§
§width: Option<f64>§height: Option<f64>Trait Implementations§
Source§impl Clone for SizeOverride
impl Clone for SizeOverride
Source§fn clone(&self) -> SizeOverride
fn clone(&self) -> SizeOverride
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 SizeOverride
Source§impl Debug for SizeOverride
impl Debug for SizeOverride
Source§impl Default for SizeOverride
impl Default for SizeOverride
Source§fn default() -> SizeOverride
fn default() -> SizeOverride
Returns the “default value” for a type. Read more
Source§impl PartialEq for SizeOverride
impl PartialEq for SizeOverride
Source§fn eq(&self, other: &SizeOverride) -> bool
fn eq(&self, other: &SizeOverride) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SizeOverride
Auto Trait Implementations§
impl Freeze for SizeOverride
impl RefUnwindSafe for SizeOverride
impl Send for SizeOverride
impl Sync for SizeOverride
impl Unpin for SizeOverride
impl UnsafeUnpin for SizeOverride
impl UnwindSafe for SizeOverride
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