[][src]Enum tract_data::prelude::TDim

pub enum TDim {
    Sym(Symbol),
    Val(i64),
    Add(Vec<TDim>),
    Mul(i64Box<TDim>),
    Div(Box<TDim>, u64),
}

Variants

Sym(Symbol)
Val(i64)
Add(Vec<TDim>)
Mul(i64Box<TDim>)
Div(Box<TDim>, u64)

Implementations

impl TDim[src]

pub fn is_one(&self) -> bool[src]

pub fn to_i64(&self) -> Result<i64>[src]

pub fn eval(&self, values: &SymbolValues) -> TDim[src]

pub fn reduce(self) -> TDim[src]

pub fn simplify(self) -> TDim[src]

pub fn div_ceil(self, rhs: u64) -> TDim[src]

pub fn slope(&self, sym: Symbol) -> (i64, u64)[src]

pub fn symbols(&self) -> HashSet<Symbol>[src]

Trait Implementations

impl<'a> Add<&'a TDim> for TDim[src]

type Output = Self

The resulting type after applying the + operator.

impl<I> Add<I> for TDim where
    I: Into<TDim>, 
[src]

type Output = Self

The resulting type after applying the + operator.

impl<'a> AddAssign<&'a TDim> for TDim[src]

impl<I> AddAssign<I> for TDim where
    I: Into<TDim>, 
[src]

impl Clone for TDim[src]

impl Datum for TDim[src]

impl Debug for TDim[src]

impl Default for TDim[src]

impl DimLike for TDim[src]

impl Display for TDim[src]

impl<I: AsPrimitive<u64>> Div<I> for TDim[src]

type Output = Self

The resulting type after applying the / operator.

impl<I: AsPrimitive<u64>> DivAssign<I> for TDim[src]

impl Eq for TDim[src]

impl<'a> From<&'a Symbol> for TDim[src]

impl<'a> From<&'a i32> for TDim[src]

impl<'a> From<&'a i64> for TDim[src]

impl<'a> From<&'a isize> for TDim[src]

impl<'a> From<&'a usize> for TDim[src]

impl From<Symbol> for TDim[src]

impl From<TDim> for Tensor[src]

impl From<i32> for TDim[src]

impl From<i64> for TDim[src]

impl From<isize> for TDim[src]

impl From<usize> for TDim[src]

impl FromStr for TDim[src]

type Err = ParseIntError

The associated error which can be returned from parsing.

impl Hash for TDim[src]

impl<I: AsPrimitive<i64>> Mul<I> for TDim[src]

type Output = Self

The resulting type after applying the * operator.

impl MulAssign<i64> for TDim[src]

impl Neg for TDim[src]

type Output = Self

The resulting type after applying the - operator.

impl Ord for TDim[src]

impl PartialEq<TDim> for TDim[src]

impl PartialOrd<TDim> for TDim[src]

impl<I: AsPrimitive<u64>> Rem<I> for TDim[src]

type Output = Self

The resulting type after applying the % operator.

impl<I: AsPrimitive<u64>> RemAssign<I> for TDim[src]

impl StructuralEq for TDim[src]

impl StructuralPartialEq for TDim[src]

impl<'a> Sub<&'a TDim> for TDim[src]

type Output = Self

The resulting type after applying the - operator.

impl<I> Sub<I> for TDim where
    I: Into<TDim>, 
[src]

type Output = Self

The resulting type after applying the - operator.

impl<'a> SubAssign<&'a TDim> for TDim[src]

impl<I> SubAssign<I> for TDim where
    I: Into<TDim>, 
[src]

impl<'a> Sum<&'a TDim> for TDim[src]

impl Sum<TDim> for TDim[src]

impl<'a> ToDim for &'a TDim[src]

impl<'a> TryFrom<&'a TDim> for TDim[src]

type Error = Error

The type returned in the event of a conversion error.

impl<'a> TryFrom<&'a TDim> for usize[src]

type Error = Error

The type returned in the event of a conversion error.

impl Zero for TDim[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Rhs> NumAssignOps<Rhs> for T where
    T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, 
[src]

impl<T, Rhs, Output> NumOps<Rhs, Output> for T where
    T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.