pub struct TupleFact { /* private fields */ }Expand description
Represents a tuple fact that can contain child facts.
Implementations§
Source§impl TupleFact
impl TupleFact
pub fn new(concept_name: ExpandedName) -> Self
pub fn concept_name(&self) -> &ExpandedName
pub fn id(&self) -> Option<&str>
pub fn set_id(&mut self, id: String)
pub fn is_nil(&self) -> bool
pub fn set_nil(&mut self, is_nil: bool)
pub fn children(&self) -> &[Fact]
pub fn children_mut(&mut self) -> &mut Vec<Fact>
pub fn add_child(&mut self, child: Fact)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TupleFact
impl RefUnwindSafe for TupleFact
impl Send for TupleFact
impl Sync for TupleFact
impl Unpin for TupleFact
impl UnsafeUnpin for TupleFact
impl UnwindSafe for TupleFact
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