[−][src]Enum tract_core::internal::TDim
Variants
Sym(Symbol)Val(i64)Implementations
impl TDim[src]
pub fn is_one(&self) -> bool[src]
pub fn to_i64(&self) -> Result<i64, Error>[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, RandomState>[src]
Trait Implementations
impl<'a> Add<&'a TDim> for TDim[src]
type Output = TDim
The resulting type after applying the + operator.
pub fn add(self, rhs: &'a TDim) -> TDim[src]
impl<I> Add<I> for TDim where
I: Into<TDim>, [src]
I: Into<TDim>,
type Output = TDim
The resulting type after applying the + operator.
pub fn add(self, rhs: I) -> TDim[src]
impl<'a> AddAssign<&'a TDim> for TDim[src]
pub fn add_assign(&mut self, rhs: &'a TDim)[src]
impl<I> AddAssign<I> for TDim where
I: Into<TDim>, [src]
I: Into<TDim>,
pub fn add_assign(&mut self, rhs: I)[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]
pub fn maybe_div(&self, other: &TDim) -> Result<(TDim, u64), Error>[src]
pub fn maybe_mul(&self, other: &TDim) -> Result<TDim, Error>[src]
pub fn to_i64(&self) -> Result<i64, Error>[src]
pub fn one() -> TDim[src]
pub fn eval(&self, values: &SymbolValues) -> TDim[src]
pub fn div_ceil(&self, other: usize) -> Self[src]
pub fn to_usize(&self) -> Result<usize, Error>[src]
pub fn to_isize(&self) -> Result<isize, Error>[src]
pub fn to_i32(&self) -> Result<i32, Error>[src]
impl Display for TDim[src]
impl<I> Div<I> for TDim where
I: AsPrimitive<u64>, [src]
I: AsPrimitive<u64>,
type Output = TDim
The resulting type after applying the / operator.
pub fn div(self, rhs: I) -> TDim[src]
impl<I> DivAssign<I> for TDim where
I: AsPrimitive<u64>, [src]
I: AsPrimitive<u64>,
pub fn div_assign(&mut self, rhs: I)[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.
pub fn from_str(s: &str) -> Result<TDim, <TDim as FromStr>::Err>[src]
impl Hash for TDim[src]
pub fn hash<__H>(&self, state: &mut __H) where
__H: Hasher, [src]
__H: Hasher,
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<I> Mul<I> for TDim where
I: AsPrimitive<i64>, [src]
I: AsPrimitive<i64>,
type Output = TDim
The resulting type after applying the * operator.
pub fn mul(self, rhs: I) -> TDim[src]
impl MulAssign<i64> for TDim[src]
pub fn mul_assign(&mut self, rhs: i64)[src]
impl Neg for TDim[src]
impl Ord for TDim[src]
pub fn cmp(&self, other: &TDim) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<TDim> for TDim[src]
impl PartialOrd<TDim> for TDim[src]
pub fn partial_cmp(&self, other: &TDim) -> Option<Ordering>[src]
pub fn lt(&self, other: &TDim) -> bool[src]
pub fn le(&self, other: &TDim) -> bool[src]
pub fn gt(&self, other: &TDim) -> bool[src]
pub fn ge(&self, other: &TDim) -> bool[src]
impl<I> Rem<I> for TDim where
I: AsPrimitive<u64>, [src]
I: AsPrimitive<u64>,
type Output = TDim
The resulting type after applying the % operator.
pub fn rem(self, rhs: I) -> TDim[src]
impl<I> RemAssign<I> for TDim where
I: AsPrimitive<u64>, [src]
I: AsPrimitive<u64>,
pub fn rem_assign(&mut self, rhs: I)[src]
impl StructuralEq for TDim[src]
impl StructuralPartialEq for TDim[src]
impl<'a> Sub<&'a TDim> for TDim[src]
type Output = TDim
The resulting type after applying the - operator.
pub fn sub(self, rhs: &'a TDim) -> TDim[src]
impl<I> Sub<I> for TDim where
I: Into<TDim>, [src]
I: Into<TDim>,
type Output = TDim
The resulting type after applying the - operator.
pub fn sub(self, rhs: I) -> TDim[src]
impl<'a> SubAssign<&'a TDim> for TDim[src]
pub fn sub_assign(&mut self, rhs: &'a TDim)[src]
impl<I> SubAssign<I> for TDim where
I: Into<TDim>, [src]
I: Into<TDim>,
pub fn sub_assign(&mut self, rhs: I)[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.
pub fn try_from(d: &'a TDim) -> Result<TDim, Error>[src]
impl Zero for TDim[src]
Auto Trait Implementations
impl RefUnwindSafe for TDim[src]
impl Send for TDim[src]
impl Sync for TDim[src]
impl Unpin for TDim[src]
impl UnwindSafe for TDim[src]
Blanket Implementations
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> Downcast for T where
T: Any, [src]
T: Any,
pub fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>ⓘNotable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;[src]
Notable traits for Box<R, Global>
impl<R> Read for Box<R, Global> where
R: Read + ?Sized, impl<W> Write for Box<W, Global> where
W: Write + ?Sized, impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;impl<F, A> Future for Box<F, A> where
F: Unpin + Future + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>[src]
pub fn as_any(&self) -> &(dyn Any + 'static)[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)[src]
impl<T> DowncastSync for T where
T: Send + Sync + Any, [src]
T: Send + Sync + Any,
impl<T> DynClone for T where
T: Clone, [src]
T: Clone,
pub fn __clone_box(&self, Private) -> *mut ()[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, Rhs> NumAssignOps<Rhs> for T where
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>, [src]
T: AddAssign<Rhs> + SubAssign<Rhs> + MulAssign<Rhs> + DivAssign<Rhs> + RemAssign<Rhs>,
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]
T: Sub<Rhs, Output = Output> + Mul<Rhs, Output = Output> + Div<Rhs, Output = Output> + Add<Rhs, Output = Output> + Rem<Rhs, Output = Output>,
impl<I> ToDim for I where
I: Clone + Into<TDim>, [src]
I: Clone + Into<TDim>,
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>,