[][src]Enum tract_core::analyser::types::GenericFact

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

Partial information about a value of type T.

Variants

Only(T)Any

Trait Implementations

impl<T: Debug + Clone + PartialEq> Fact for GenericFact<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.

fn is_concrete(&self) -> bool[src]

Returns whether the value is fully determined.

impl TExp<GenericFact<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 IntoExp<GenericFact<DatumType>> for TypeProxy[src]

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

type Output = GenericFact<T>

The resulting type after applying the - operator.

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

type Output = GenericFact<T>

The resulting type after applying the / operator.

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

type Output = GenericFact<T>

The resulting type after applying the + operator.

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

type Output = GenericFact<T>

The resulting type after applying the * operator.

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

type Output = GenericFact<T>

The resulting type after applying the - operator.

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

Auto Trait Implementations

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

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

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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

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

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

impl<T> Downcast for T where
    T: Any
[src]

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