pub struct ModelCompleter { /* private fields */ }Expand description
Model completion engine.
Implementations§
Source§impl ModelCompleter
impl ModelCompleter
Sourcepub fn new(config: CompletionConfig) -> Self
pub fn new(config: CompletionConfig) -> Self
Create a new model completer.
Sourcepub fn default_config() -> Self
pub fn default_config() -> Self
Create with default configuration.
Sourcepub fn add_witness(&mut self, var: VarId, value: Value)
pub fn add_witness(&mut self, var: VarId, value: Value)
Register a witness value for a variable.
Sourcepub fn complete(&mut self, partial_model: &Model) -> Model
pub fn complete(&mut self, partial_model: &Model) -> Model
Complete a partial model by filling in missing values.
Returns the completed model.
Sourcepub fn stats(&self) -> &CompletionStats
pub fn stats(&self) -> &CompletionStats
Get statistics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModelCompleter
impl RefUnwindSafe for ModelCompleter
impl Send for ModelCompleter
impl Sync for ModelCompleter
impl Unpin for ModelCompleter
impl UnwindSafe for ModelCompleter
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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