[][src]Enum tract_hir::infer::GenericFactoid

pub enum GenericFactoid<T: Debug + Clone + PartialEq + Hash> {
    Only(T),
    Any,
}

Partial information about a value of type T.

Variants

Only(T)
Any

Trait Implementations

impl<T, I> Add<I> for GenericFactoid<T> where
    T: Add<T, Output = T> + PartialEq + Clone + Debug + Hash,
    I: Into<GenericFactoid<T>>, 
[src]

type Output = GenericFactoid<T>

The resulting type after applying the + operator.

impl<T: Clone + Debug + PartialEq + Hash> Clone for GenericFactoid<T>[src]

impl<T: Copy + Clone + Debug + PartialEq + Hash> Copy for GenericFactoid<T>[src]

impl<T: Debug + Clone + PartialEq + Hash> Debug for GenericFactoid<T>[src]

impl<T: Debug + Clone + PartialEq + Hash> Default for GenericFactoid<T>[src]

impl<T, R> Div<R> for GenericFactoid<T> where
    T: Div<R, Output = T> + PartialEq + Clone + Debug + Hash
[src]

type Output = GenericFactoid<T>

The resulting type after applying the / operator.

impl<T: Debug + Clone + PartialEq + Hash> Factoid for GenericFactoid<T>[src]

type Concrete = T

fn concretize(&self) -> Option<T>[src]

Tries to transform the fact into a concrete value.

fn unify(&self, other: &Self) -> TractResult<Self>[src]

Tries to unify the fact with another fact of the same type.

impl<T: Debug + Clone + PartialEq + Hash> From<T> for GenericFactoid<T>[src]

impl<T: Hash + Debug + Clone + PartialEq> Hash for GenericFactoid<T>[src]

impl IntoExp<GenericFactoid<Arc<Tensor>>> for ValueProxy[src]

impl<'a> IntoExp<GenericFactoid<Arc<Tensor>>> for &'a ValueProxy[src]

impl IntoExp<GenericFactoid<Arc<Tensor>>> for Arc<Tensor>[src]

impl IntoExp<GenericFactoid<DatumType>> for TypeProxy[src]

impl<'a> IntoExp<GenericFactoid<DatumType>> for &'a TypeProxy[src]

impl IntoExp<GenericFactoid<DatumType>> for DatumType[src]

impl<'a> IntoExp<GenericFactoid<DatumType>> for &'a DatumType[src]

impl<'a> IntoExp<GenericFactoid<TDim>> for &'a DimProxy[src]

impl IntoExp<GenericFactoid<TDim>> for TDim[src]

impl<'_> IntoExp<GenericFactoid<TDim>> for &'_ TDim[src]

impl<'a> IntoExp<GenericFactoid<i32>> for &'a IntProxy[src]

impl<'a> IntoExp<GenericFactoid<i32>> for &'a ElementProxy[src]

impl IntoExp<GenericFactoid<i32>> for i32[src]

impl<T, R> Mul<R> for GenericFactoid<T> where
    T: Mul<R, Output = T> + PartialEq + Clone + Debug + Hash
[src]

type Output = GenericFactoid<T>

The resulting type after applying the * operator.

impl<T> Neg for GenericFactoid<T> where
    T: Neg<Output = T> + PartialEq + Clone + Debug + Hash
[src]

type Output = GenericFactoid<T>

The resulting type after applying the - operator.

impl<T: PartialEq + Debug + Clone + Hash> PartialEq<GenericFactoid<T>> for GenericFactoid<T>[src]

impl<T, R> Rem<R> for GenericFactoid<T> where
    T: Rem<R, Output = T> + PartialEq + Clone + Debug + Hash
[src]

type Output = GenericFactoid<T>

The resulting type after applying the % operator.

impl<T: Debug + Clone + PartialEq + Hash> StructuralPartialEq for GenericFactoid<T>[src]

impl<T> Sub<GenericFactoid<T>> for GenericFactoid<T> where
    T: Sub<T, Output = T> + PartialEq + Clone + Debug + Hash
[src]

type Output = GenericFactoid<T>

The resulting type after applying the - operator.

impl TExp<GenericFactoid<TDim>> for IntoDimExp[src]

fn get(&self, context: &Context) -> TractResult<DimFact>[src]

Returns the current value of the expression in the given context.

fn set(&self, context: &mut Context, value: DimFact) -> TractResult<bool>[src]

Tries to set the value of the expression in the given context.

fn get_paths(&self) -> Vec<&Path>[src]

Returns the paths that the expression depends on.

impl<T> Zero for GenericFactoid<T> where
    T: Add<T, Output = T> + Zero + PartialEq + Clone + Debug + Hash
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for GenericFactoid<T> where
    T: RefUnwindSafe

impl<T> Send for GenericFactoid<T> where
    T: Send

impl<T> Sync for GenericFactoid<T> where
    T: Sync

impl<T> Unpin for GenericFactoid<T> where
    T: Unpin

impl<T> UnwindSafe for GenericFactoid<T> where
    T: UnwindSafe

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> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[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, 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.