pub enum Predicate {
Root(String),
Pair((PredicateId, PredicateId)),
Converted((Conversion, PredicateId)),
Negated(PredicateId),
Grouped(PredicateId),
WithArgs((PredicateId, Vec<ArgumentId>)),
Abstraction((AbstractionKind, u32)),
}Expand description
A predicate (predicate relation) in the AST.
Variants§
Root(String)
Root relation: an atomic corpus name, or a compound entry’s relation
ident (computer_user) — compounds resolve to their entry BEFORE
emission, so no compound structure survives into the AST.
Pair((PredicateId, PredicateId))
Modifier+head pair (a compound predicate). Fields: (modifier-id, head-id).
Converted((Conversion, PredicateId))
SE-converted predicate. Fields: (conversion, inner-id).
Negated(PredicateId)
Negated predicate (na). Payload: inner-id.
Grouped(PredicateId)
Grouped predicate ([ ... ] bracket group). Payload: inner-id.
WithArgs((PredicateId, Vec<ArgumentId>))
Predicate with linked arguments. Fields: (core-id, argument-ids).
Abstraction((AbstractionKind, u32))
Abstraction: event/fact/property/amount/concept block.
Fields: (kind, sentence-id).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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