pub struct AspectRatio<T>(pub T)
where
T: Clone + Debug + Display + PartialEq + UnitDataType<Self>;Expand description
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Source§impl<T> Clone for AspectRatio<T>
impl<T> Clone for AspectRatio<T>
Source§fn clone(&self) -> AspectRatio<T>
fn clone(&self) -> AspectRatio<T>
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<T> Debug for AspectRatio<T>
impl<T> Debug for AspectRatio<T>
Source§impl Default for AspectRatio<AspectRatioValue>
impl Default for AspectRatio<AspectRatioValue>
Source§impl<T> Display for AspectRatio<T>
impl<T> Display for AspectRatio<T>
Source§impl<T> From<T> for AspectRatio<AspectRatioValue>
impl<T> From<T> for AspectRatio<AspectRatioValue>
Source§impl<T> From<T> for AspectRatio<T>
impl<T> From<T> for AspectRatio<T>
Source§impl<T> PartialEq for AspectRatio<T>
impl<T> PartialEq for AspectRatio<T>
Source§impl<T> Property for AspectRatio<T>
impl<T> Property for AspectRatio<T>
Source§fn declaration(&self) -> String
fn declaration(&self) -> String
Returns the stringified property name with its value
as a CSS declaration to be used within a declaration block. Read more
Source§impl<T> PropertyName for AspectRatio<T>
impl<T> PropertyName for AspectRatio<T>
fn property_name<'a>(&self) -> &'a str
Source§impl RatioStorage for AspectRatio<AspectRatioValue>
impl RatioStorage for AspectRatio<AspectRatioValue>
impl<T> StructuralPartialEq for AspectRatio<T>
impl UnitDataType<AspectRatio<AspectRatioValue>> for AspectRatioValue
impl UnitDataType<AspectRatio<Nothing>> for Nothing
impl<T> UnitDataType<AspectRatio<Var<T>>> for Var<T>
impl<T> UnitDataTypeContainer<T> for AspectRatio<T>
Auto Trait Implementations§
impl<T> Freeze for AspectRatio<T>where
T: Freeze,
impl<T> RefUnwindSafe for AspectRatio<T>where
T: RefUnwindSafe,
impl<T> Send for AspectRatio<T>where
T: Send,
impl<T> Sync for AspectRatio<T>where
T: Sync,
impl<T> Unpin for AspectRatio<T>where
T: Unpin,
impl<T> UnwindSafe for AspectRatio<T>where
T: UnwindSafe,
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