Enum tract_core::internal::TDim
source · [−]pub enum TDim {
Sym(Symbol),
Val(i64),
Add(Vec<TDim, Global>),
Mul(Vec<TDim, Global>),
MulInt(i64, Box<TDim, Global>),
Div(Box<TDim, Global>, u64),
}
Variants
Sym(Symbol)
Val(i64)
Add(Vec<TDim, Global>)
Mul(Vec<TDim, Global>)
MulInt(i64, Box<TDim, Global>)
Div(Box<TDim, Global>, u64)
Implementations
sourceimpl TDim
impl TDim
pub fn is_one(&self) -> bool
pub fn to_i64(&self) -> Result<i64, Error>
pub fn eval(&self, values: &SymbolValues) -> TDim
pub fn reduce(self) -> TDim
pub fn simplify(self) -> TDim
pub fn div_ceil(self, rhs: u64) -> TDim
pub fn slope(&self, sym: Symbol) -> (i64, u64)
pub fn symbols(&self) -> HashSet<Symbol, RandomState>
Trait Implementations
sourceimpl<'a> AddAssign<&'a TDim> for TDim
impl<'a> AddAssign<&'a TDim> for TDim
sourcefn add_assign(&mut self, rhs: &'a TDim)
fn add_assign(&mut self, rhs: &'a TDim)
Performs the +=
operation. Read more
sourceimpl<I> AddAssign<I> for TDim where
I: Into<TDim>,
impl<I> AddAssign<I> for TDim where
I: Into<TDim>,
sourcefn add_assign(&mut self, rhs: I)
fn add_assign(&mut self, rhs: I)
Performs the +=
operation. Read more
sourceimpl DimLike for TDim
impl DimLike for TDim
sourceimpl<I> DivAssign<I> for TDim where
I: AsPrimitive<u64> + PrimInt,
impl<I> DivAssign<I> for TDim where
I: AsPrimitive<u64> + PrimInt,
sourcefn div_assign(&mut self, rhs: I)
fn div_assign(&mut self, rhs: I)
Performs the /=
operation. Read more
sourceimpl<'a> MulAssign<&'a TDim> for TDim
impl<'a> MulAssign<&'a TDim> for TDim
sourcefn mul_assign(&mut self, rhs: &'a TDim)
fn mul_assign(&mut self, rhs: &'a TDim)
Performs the *=
operation. Read more
sourceimpl<I> MulAssign<I> for TDim where
I: Into<TDim>,
impl<I> MulAssign<I> for TDim where
I: Into<TDim>,
sourcefn mul_assign(&mut self, rhs: I)
fn mul_assign(&mut self, rhs: I)
Performs the *=
operation. Read more
sourceimpl Ord for TDim
impl Ord for TDim
sourceimpl PartialOrd<TDim> for TDim
impl PartialOrd<TDim> for TDim
sourcefn partial_cmp(&self, other: &TDim) -> Option<Ordering>
fn partial_cmp(&self, other: &TDim) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl<I> RemAssign<I> for TDim where
I: AsPrimitive<u64> + PrimInt,
impl<I> RemAssign<I> for TDim where
I: AsPrimitive<u64> + PrimInt,
sourcefn rem_assign(&mut self, rhs: I)
fn rem_assign(&mut self, rhs: I)
Performs the %=
operation. Read more
sourceimpl<'a> SubAssign<&'a TDim> for TDim
impl<'a> SubAssign<&'a TDim> for TDim
sourcefn sub_assign(&mut self, rhs: &'a TDim)
fn sub_assign(&mut self, rhs: &'a TDim)
Performs the -=
operation. Read more
sourceimpl<I> SubAssign<I> for TDim where
I: Into<TDim>,
impl<I> SubAssign<I> for TDim where
I: Into<TDim>,
sourcefn sub_assign(&mut self, rhs: I)
fn sub_assign(&mut self, rhs: I)
Performs the -=
operation. Read more
impl Eq for TDim
impl StructuralEq for TDim
impl StructuralPartialEq for TDim
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn 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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
I: Iterator + ?Sized,
A: Allocator, type Item = <I as Iterator>::Item;
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
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
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
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
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
sourceimpl<T> DowncastSync for T where
T: Any + Send + Sync,
impl<T> DowncastSync for T where
T: Any + Send + Sync,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more