#[repr(transparent)]pub struct AspectRatio(pub f32);Expand description
Keyless style! property wrapper setting explicit width / height aspect ratio.
Tuple Fields§
§0: f32Trait Implementations§
Source§impl Clone for AspectRatio
impl Clone for AspectRatio
impl Copy for AspectRatio
Source§impl Debug for AspectRatio
impl Debug for AspectRatio
Source§impl Default for AspectRatio
impl Default for AspectRatio
Source§impl PartialEq for AspectRatio
impl PartialEq for AspectRatio
impl StructuralPartialEq for AspectRatio
Source§impl StyleApply for AspectRatio
StyleApply implementation for AspectRatio.
impl StyleApply for AspectRatio
StyleApply implementation for AspectRatio.
Source§fn apply_in_place(self, style: &mut Style)
fn apply_in_place(self, style: &mut Style)
Applies AspectRatio directly in place onto style.
§Arguments
Self- Positive aspect ratio wrapper.&mut Style- Style accumulator mutated in place.
Auto Trait Implementations§
impl Forget for AspectRatio
impl Freeze for AspectRatio
impl Move for AspectRatio
impl RefUnwindSafe for AspectRatio
impl Send for AspectRatio
impl Sync for AspectRatio
impl Unpin for AspectRatio
impl UnsafeUnpin for AspectRatio
impl UnwindSafe for AspectRatio
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