pub struct PartialFacts(/* private fields */);Expand description
Fact bundle accepted by partial evaluation.
Implementations§
Source§impl PartialFacts
impl PartialFacts
Sourcepub fn from_entries(
entries: impl IntoIterator<Item = (FactId, Presence)>,
) -> Self
pub fn from_entries( entries: impl IntoIterator<Item = (FactId, Presence)>, ) -> Self
Builds partial facts from explicit entries.
Sourcepub fn with_present<F: Fact>(self) -> Self
pub fn with_present<F: Fact>(self) -> Self
Marks a typed fact as present.
Sourcepub fn with_absent<F: Fact>(self) -> Self
pub fn with_absent<F: Fact>(self) -> Self
Marks a typed fact as absent.
Sourcepub fn with_unknown<F: Fact>(self) -> Self
pub fn with_unknown<F: Fact>(self) -> Self
Marks a typed fact as unknown for query lowering.
Trait Implementations§
Source§impl Clone for PartialFacts
impl Clone for PartialFacts
Source§fn clone(&self) -> PartialFacts
fn clone(&self) -> PartialFacts
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartialFacts
impl Debug for PartialFacts
Source§impl Default for PartialFacts
impl Default for PartialFacts
Source§fn default() -> PartialFacts
fn default() -> PartialFacts
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartialFacts
impl<'de> Deserialize<'de> for PartialFacts
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PartialFacts
Source§impl Extend<(FactId, Presence)> for PartialFacts
impl Extend<(FactId, Presence)> for PartialFacts
Source§fn extend<T>(&mut self, iter: T)
fn extend<T>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<(FactId, Presence)> for PartialFacts
impl FromIterator<(FactId, Presence)> for PartialFacts
Source§impl PartialEq for PartialFacts
impl PartialEq for PartialFacts
Source§impl Serialize for PartialFacts
impl Serialize for PartialFacts
impl StructuralPartialEq for PartialFacts
Auto Trait Implementations§
impl Freeze for PartialFacts
impl RefUnwindSafe for PartialFacts
impl Send for PartialFacts
impl Sync for PartialFacts
impl Unpin for PartialFacts
impl UnsafeUnpin for PartialFacts
impl UnwindSafe for PartialFacts
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