pub struct StyleLength {
pub value: f32,
pub unit: StyleUnit,
}Fields§
§value: f32§unit: StyleUnitTrait Implementations§
Source§impl Clone for StyleLength
impl Clone for StyleLength
Source§fn clone(&self) -> StyleLength
fn clone(&self) -> StyleLength
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 StyleLength
Source§impl Debug for StyleLength
impl Debug for StyleLength
Source§impl Default for StyleLength
impl Default for StyleLength
Source§fn default() -> StyleLength
fn default() -> StyleLength
Returns the “default value” for a type. Read more
Source§impl PartialEq for StyleLength
impl PartialEq for StyleLength
impl StructuralPartialEq for StyleLength
Auto Trait Implementations§
impl Freeze for StyleLength
impl RefUnwindSafe for StyleLength
impl Send for StyleLength
impl Sync for StyleLength
impl Unpin for StyleLength
impl UnsafeUnpin for StyleLength
impl UnwindSafe for StyleLength
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