pub struct VnCalcSize {
pub basis: VnSizeBasis,
pub scale: f32,
pub offset: DefiniteLength,
}Expand description
vue-native fork: calc-size(<basis>, size * scale + offset). The basis is laid out first and
size is the length it took; only a linear function of size is representable.
Fields§
§basis: VnSizeBasisWhat size measures.
scale: f32The factor on size.
offset: DefiniteLengthAdded after scaling; a percentage is of the containing block.
Implementations§
Trait Implementations§
Source§impl Clone for VnCalcSize
impl Clone for VnCalcSize
impl Copy for VnCalcSize
Source§impl Debug for VnCalcSize
impl Debug for VnCalcSize
Source§impl PartialEq for VnCalcSize
impl PartialEq for VnCalcSize
impl StructuralPartialEq for VnCalcSize
Auto Trait Implementations§
impl Forget for VnCalcSize
impl Freeze for VnCalcSize
impl Move for VnCalcSize
impl RefUnwindSafe for VnCalcSize
impl Send for VnCalcSize
impl Sync for VnCalcSize
impl Unpin for VnCalcSize
impl UnsafeUnpin for VnCalcSize
impl UnwindSafe for VnCalcSize
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more