Enum css_style::calc::Calc [−][src]
pub enum Calc<T> {
Val(T),
Sum(Box<Calc<T>>, T),
Sub(Box<Calc<T>>, T),
Mul(Box<Calc<T>>, T),
Div(Box<Calc<T>>, T),
}Variants
Implementations
impl<T> Calc<T>[src]
pub fn sum(self, val: impl Into<T>) -> Self[src]
pub fn sub(self, val: impl Into<T>) -> Self[src]
pub fn mul(self, val: impl Into<T>) -> Self[src]
pub fn div(self, val: impl Into<T>) -> Self[src]
Trait Implementations
impl<T: Clone> Clone for Calc<T>[src]
fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T: Debug> Debug for Calc<T>[src]
impl<T: Display> Display for Calc<T>[src]
impl From<Calc<ClipRectLength>> for ClipRectLength[src]
impl From<Calc<Length>> for Length[src]
impl From<Calc<Length>> for Length[src]
impl From<Calc<LengthPercent>> for LengthPercent[src]
impl From<Calc<PostionLength>> for PostionLength[src]
impl<T: PartialEq> PartialEq<Calc<T>> for Calc<T>[src]
impl<T: PartialOrd> PartialOrd<Calc<T>> for Calc<T>[src]
fn partial_cmp(&self, other: &Calc<T>) -> Option<Ordering>[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn lt(&self, other: &Rhs) -> bool#[must_use]pub fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn le(&self, other: &Rhs) -> bool#[must_use]pub fn gt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn gt(&self, other: &Rhs) -> bool#[must_use]pub fn ge(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
pub fn ge(&self, other: &Rhs) -> boolimpl<T> StructuralPartialEq for Calc<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Calc<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for Calc<T> where
T: Send,
T: Send,
impl<T> Sync for Calc<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Calc<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Calc<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint, [src]
T: Component + Float,
D: AdaptFrom<S, Swp, Dwp, T>,
Swp: WhitePoint,
Dwp: WhitePoint,
pub fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>, [src]
M: TransformMatrix<Swp, Dwp, T>,
pub fn adapt_into(self) -> D[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> ConvertInto<U> for T where
U: ConvertFrom<T>, [src]
U: ConvertFrom<T>,
pub fn convert_into(self) -> U[src]
pub fn convert_unclamped_into(self) -> U[src]
pub fn try_convert_into(self) -> Result<U, OutOfBounds<U>>[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,