pub struct Model { /* private fields */ }Expand description
Is a basic instance of ModelTrait with terms of type WitnessTerm.
Implementations§
Trait Implementations§
Source§impl ModelTrait for Model
impl ModelTrait for Model
Source§type TermType = WitnessTerm
type TermType = WitnessTerm
Is the type of witness terms, denoting elements of this model.
WitnessTerm::ElementType
is the type of elements for this model.Source§fn domain(&self) -> Vec<&E>
fn domain(&self) -> Vec<&E>
Returns the domain of the receiver. The domain of a model consists of all elements in the
model.
Source§fn facts(&self) -> Vec<&Observation<Self::TermType>>
fn facts(&self) -> Vec<&Observation<Self::TermType>>
Returns the set of relational
Facts that are true in the receiver.Source§fn observe(&mut self, observation: &Observation<WitnessTerm>)
fn observe(&mut self, observation: &Observation<WitnessTerm>)
Augments the receiver with
observation, making observationtrue in the receiver.Source§fn is_observed(&self, observation: &Observation<WitnessTerm>) -> bool
fn is_observed(&self, observation: &Observation<WitnessTerm>) -> bool
Returns true if
observation is true in the receiver; otherwise, returns false.Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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