[−][src]Enum linear_solver::Inference
Tells the solver how to treat inference.
Variants
OneTrue
Consumes from
while producing nothing.
Fields of OneTrue
ManyTrue
Consumes all from
while producing nothing.
Fields of ManyTrue
from: Vec<T>
Facts to remove from context to be replaced by nothing.
Simplify
Consumes from
and replaces it with to
.
Fields of Simplify
SimplifyOne
Consumes from
and replaces it with to
.
Fields of SimplifyOne
SimplifyMany
Consumes all from
while producing multiple facts to
.
Fields of SimplifyMany
Propagate(T)
Add new fact.
Methods
impl<T: Eq + Hash> Inference<T>
[src]
pub fn replace_one(from: T, to: T, cache: &HashSet<T>) -> Self
[src]
Replace from
with to
, checking the cache.
Returns OneTrue
if to
already exists,
and SimplifyOne
if to
does not exist.
pub fn replace(from: Vec<T>, to: T, cache: &HashSet<T>) -> Self
[src]
Replace from
with to
, checking the cache.
Returns ManyTrue
if to
already exists,
and Simplify
if to
does not exist.
pub fn replace_many(from: Vec<T>, to: Vec<T>, cache: &HashSet<T>) -> Self
[src]
Replace from
with to
, checking the cache.
Returns modified SimplifyMany
where existing terms are removed.
Auto Trait Implementations
impl<T> Sync for Inference<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Inference<T> where
T: Unpin,
T: Unpin,
impl<T> Send for Inference<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for Inference<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for Inference<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,