[][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<SharedTensor>> for ValueProxy
[src]

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

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

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

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

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

impl<T: PartialEq + Debug + Clone + PartialEq> PartialEq<GenericFact<T>> 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> Debug for GenericFact<T>
[src]

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> 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> 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, 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> 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<PB, Tract> ToTract for PB where
    Tract: Tractify<PB>, 
[src]

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

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

type Owned = T

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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]