Enum tract_core::internal::TDim [−][src]
pub enum TDim { Sym(Symbol), Val(i64), Add(Vec<TDim, Global>), Mul(i64, Box<TDim, Global>), Div(Box<TDim, Global>, u64), }
Variants
Sym(Symbol)
Val(i64)
Implementations
impl TDim
[src]
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> AddAssign<&'a TDim> for TDim
[src]
impl<'a> AddAssign<&'a TDim> for TDim
[src]pub fn add_assign(&mut self, rhs: &'a TDim)
[src]
pub fn add_assign(&mut self, rhs: &'a TDim)
[src]Performs the +=
operation. Read more
impl<I> AddAssign<I> for TDim where
I: Into<TDim>,
[src]
impl<I> AddAssign<I> for TDim where
I: Into<TDim>,
[src]pub fn add_assign(&mut self, rhs: I)
[src]
pub fn add_assign(&mut self, rhs: I)
[src]Performs the +=
operation. Read more
impl DimLike 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 eval(&self, values: &SymbolValues) -> TDim
[src]
fn to_usize(&self) -> Result<usize, Error>
[src]
fn to_isize(&self) -> Result<isize, Error>
[src]
fn to_i32(&self) -> Result<i32, Error>
[src]
impl<I> Div<I> for TDim where
I: AsPrimitive<u64>,
[src]
impl<I> Div<I> for TDim where
I: AsPrimitive<u64>,
[src]impl<I> DivAssign<I> for TDim where
I: AsPrimitive<u64>,
[src]
impl<I> DivAssign<I> for TDim where
I: AsPrimitive<u64>,
[src]pub fn div_assign(&mut self, rhs: I)
[src]
pub fn div_assign(&mut self, rhs: I)
[src]Performs the /=
operation. Read more
impl<I> Mul<I> for TDim where
I: AsPrimitive<i64>,
[src]
impl<I> Mul<I> for TDim where
I: AsPrimitive<i64>,
[src]impl MulAssign<i64> for TDim
[src]
impl MulAssign<i64> for TDim
[src]pub fn mul_assign(&mut self, rhs: i64)
[src]
pub fn mul_assign(&mut self, rhs: i64)
[src]Performs the *=
operation. Read more
impl Ord for TDim
[src]
impl Ord for TDim
[src]impl PartialOrd<TDim> for TDim
[src]
impl PartialOrd<TDim> for TDim
[src]pub fn partial_cmp(&self, other: &TDim) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &TDim) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl<I> Rem<I> for TDim where
I: AsPrimitive<u64>,
[src]
impl<I> Rem<I> for TDim where
I: AsPrimitive<u64>,
[src]impl<I> RemAssign<I> for TDim where
I: AsPrimitive<u64>,
[src]
impl<I> RemAssign<I> for TDim where
I: AsPrimitive<u64>,
[src]pub fn rem_assign(&mut self, rhs: I)
[src]
pub fn rem_assign(&mut self, rhs: I)
[src]Performs the %=
operation. Read more
impl<'a> SubAssign<&'a TDim> for TDim
[src]
impl<'a> SubAssign<&'a TDim> for TDim
[src]pub fn sub_assign(&mut self, rhs: &'a TDim)
[src]
pub fn sub_assign(&mut self, rhs: &'a TDim)
[src]Performs the -=
operation. Read more
impl<I> SubAssign<I> for TDim where
I: Into<TDim>,
[src]
impl<I> SubAssign<I> for TDim where
I: Into<TDim>,
[src]pub fn sub_assign(&mut self, rhs: I)
[src]
pub fn sub_assign(&mut self, rhs: I)
[src]Performs the -=
operation. Read more
impl Eq for TDim
[src]
impl StructuralEq for TDim
[src]
impl StructuralPartialEq for TDim
[src]
Auto Trait Implementations
impl RefUnwindSafe for TDim
impl Send for TDim
impl Sync for TDim
impl Unpin for TDim
impl UnwindSafe for TDim
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Downcast for T where
T: Any,
[src]
impl<T> Downcast for T where
T: Any,
[src]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<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]
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<F, A> Future for Box<F, A> where
F: Future + Unpin + ?Sized,
A: Allocator + 'static, type Output = <F as Future>::Output;impl<I, A> Iterator for Box<I, A> where
A: Allocator,
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;
[src]Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]
pub fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
[src]Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]
pub fn as_any(&self) -> &(dyn Any + 'static)
[src]Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]
pub fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
[src]Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
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>,