Struct typeql::pattern::ThingStatement
source · pub struct ThingStatement {
pub variable: ConceptVariable,
pub iid: Option<IIDConstraint>,
pub isa: Option<IsaConstraint>,
pub has: Vec<HasConstraint>,
pub predicate: Option<Predicate>,
pub relation: Option<RelationConstraint>,
}Fields§
§variable: ConceptVariable§iid: Option<IIDConstraint>§isa: Option<IsaConstraint>§has: Vec<HasConstraint>§predicate: Option<Predicate>§relation: Option<RelationConstraint>Implementations§
source§impl ThingStatement
impl ThingStatement
pub fn new(variable: ConceptVariable) -> ThingStatement
pub fn owner(&self) -> VariableRef<'_>
pub fn variables(&self) -> Box<dyn Iterator<Item = VariableRef<'_>> + '_>
pub fn constrain_has(self, has: HasConstraint) -> ThingStatement
pub fn constrain_iid(self, iid: IIDConstraint) -> ThingStatement
pub fn constrain_isa(self, isa: IsaConstraint) -> ThingStatement
pub fn constrain_predicate(self, predicate: Predicate) -> ThingStatement
pub fn constrain_relation(self, relation: RelationConstraint) -> ThingStatement
Trait Implementations§
source§impl Clone for ThingStatement
impl Clone for ThingStatement
source§fn clone(&self) -> ThingStatement
fn clone(&self) -> ThingStatement
Returns a copy of the value. Read more
1.0.0 · 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 ThingStatement
impl Debug for ThingStatement
source§impl Display for ThingStatement
impl Display for ThingStatement
source§impl From<ConceptVariable> for ThingStatement
impl From<ConceptVariable> for ThingStatement
source§fn from(variable: ConceptVariable) -> Self
fn from(variable: ConceptVariable) -> Self
Converts to this type from the input type.
source§impl From<ThingStatement> for Pattern
impl From<ThingStatement> for Pattern
source§fn from(statement: ThingStatement) -> Self
fn from(statement: ThingStatement) -> Self
Converts to this type from the input type.
source§impl From<ThingStatement> for Statement
impl From<ThingStatement> for Statement
source§fn from(x: ThingStatement) -> Self
fn from(x: ThingStatement) -> Self
Converts to this type from the input type.
source§impl PartialEq for ThingStatement
impl PartialEq for ThingStatement
source§fn eq(&self, other: &ThingStatement) -> bool
fn eq(&self, other: &ThingStatement) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Validatable for ThingStatement
impl Validatable for ThingStatement
source§impl Writable for ThingStatement
impl Writable for ThingStatement
fn statements(self) -> Vec<ThingStatement>
impl Eq for ThingStatement
impl StructuralPartialEq for ThingStatement
Auto Trait Implementations§
impl RefUnwindSafe for ThingStatement
impl Send for ThingStatement
impl Sync for ThingStatement
impl Unpin for ThingStatement
impl UnwindSafe for ThingStatement
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