pub struct InferenceModel(/* private fields */);Trait Implementations§
Source§impl AsFact<InferenceModel, InferenceFact> for &str
impl AsFact<InferenceModel, InferenceFact> for &str
fn as_fact(&self, model: &mut InferenceModel) -> Result<Bow<'_, InferenceFact>>
Source§impl AsFact<InferenceModel, InferenceFact> for ()
impl AsFact<InferenceModel, InferenceFact> for ()
fn as_fact(&self, model: &mut InferenceModel) -> Result<Bow<'_, InferenceFact>>
Source§impl AsFact<InferenceModel, InferenceFact> for InferenceFact
impl AsFact<InferenceModel, InferenceFact> for InferenceFact
fn as_fact(&self, _model: &mut InferenceModel) -> Result<Bow<'_, InferenceFact>>
Source§impl AsFact<InferenceModel, InferenceFact> for Option<&str>
impl AsFact<InferenceModel, InferenceFact> for Option<&str>
fn as_fact(&self, model: &mut InferenceModel) -> Result<Bow<'_, InferenceFact>>
Source§impl InferenceModelInterface for InferenceModel
impl InferenceModelInterface for InferenceModel
type Model = Model
type InferenceFact = InferenceFact
fn input_count(&self) -> Result<usize>
fn output_count(&self) -> Result<usize>
fn input_name(&self, id: usize) -> Result<String>
fn output_name(&self, id: usize) -> Result<String>
fn set_output_names( &mut self, outputs: impl IntoIterator<Item = impl AsRef<str>>, ) -> Result<()>
fn input_fact(&self, id: usize) -> Result<InferenceFact>
fn set_input_fact( &mut self, id: usize, fact: impl AsFact<Self, Self::InferenceFact>, ) -> Result<()>
fn output_fact(&self, id: usize) -> Result<InferenceFact>
fn set_output_fact( &mut self, id: usize, fact: impl AsFact<Self, Self::InferenceFact>, ) -> Result<()>
fn analyse(&mut self) -> Result<()>
fn into_typed(self) -> Result<Self::Model>
fn into_optimized(self) -> Result<Self::Model>
Auto Trait Implementations§
impl Freeze for InferenceModel
impl !RefUnwindSafe for InferenceModel
impl Send for InferenceModel
impl Sync for InferenceModel
impl Unpin for InferenceModel
impl !UnwindSafe for InferenceModel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn 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.Source§fn 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.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more