pub struct CalcLinear { /* private fields */ }Expand description
Internal linear form of a calc(...) expression: px + percent * basis.
Implementations§
Source§impl CalcLinear
impl CalcLinear
pub fn components(self) -> (f32, f32)
Trait Implementations§
Source§impl Clone for CalcLinear
impl Clone for CalcLinear
Source§fn clone(&self) -> CalcLinear
fn clone(&self) -> CalcLinear
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 CalcLinear
Source§impl Debug for CalcLinear
impl Debug for CalcLinear
Source§impl PartialEq for CalcLinear
impl PartialEq for CalcLinear
Source§fn eq(&self, other: &CalcLinear) -> bool
fn eq(&self, other: &CalcLinear) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CalcLinear
Auto Trait Implementations§
impl Freeze for CalcLinear
impl RefUnwindSafe for CalcLinear
impl Send for CalcLinear
impl Sync for CalcLinear
impl Unpin for CalcLinear
impl UnsafeUnpin for CalcLinear
impl UnwindSafe for CalcLinear
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