Struct typeql::pattern::RolePlayerConstraint
source · pub struct RolePlayerConstraint {
pub role_type: Option<TypeReference>,
pub player: ConceptVariable,
pub repetition: u64,
}Fields§
§role_type: Option<TypeReference>§player: ConceptVariable§repetition: u64Implementations§
source§impl RolePlayerConstraint
impl RolePlayerConstraint
pub fn new(role_type: Option<TypeReference>, player: ConceptVariable) -> Self
pub fn variables(&self) -> Box<dyn Iterator<Item = VariableRef<'_>> + '_>
Trait Implementations§
source§impl Clone for RolePlayerConstraint
impl Clone for RolePlayerConstraint
source§fn clone(&self) -> RolePlayerConstraint
fn clone(&self) -> RolePlayerConstraint
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 RolePlayerConstraint
impl Debug for RolePlayerConstraint
source§impl Display for RolePlayerConstraint
impl Display for RolePlayerConstraint
source§impl From<&str> for RolePlayerConstraint
impl From<&str> for RolePlayerConstraint
source§impl From<(ConceptVariable, ConceptVariable)> for RolePlayerConstraint
impl From<(ConceptVariable, ConceptVariable)> for RolePlayerConstraint
source§fn from((role_type, player_var): (ConceptVariable, ConceptVariable)) -> Self
fn from((role_type, player_var): (ConceptVariable, ConceptVariable)) -> Self
Converts to this type from the input type.
source§impl From<(Label, ConceptVariable)> for RolePlayerConstraint
impl From<(Label, ConceptVariable)> for RolePlayerConstraint
source§fn from((role_type, player_var): (Label, ConceptVariable)) -> Self
fn from((role_type, player_var): (Label, ConceptVariable)) -> Self
Converts to this type from the input type.
source§impl From<(String, ConceptVariable)> for RolePlayerConstraint
impl From<(String, ConceptVariable)> for RolePlayerConstraint
source§fn from((role_type, player_var): (String, ConceptVariable)) -> Self
fn from((role_type, player_var): (String, ConceptVariable)) -> Self
Converts to this type from the input type.
source§impl From<(TypeReference, ConceptVariable)> for RolePlayerConstraint
impl From<(TypeReference, ConceptVariable)> for RolePlayerConstraint
source§fn from((role_type, player_var): (TypeReference, ConceptVariable)) -> Self
fn from((role_type, player_var): (TypeReference, ConceptVariable)) -> Self
Converts to this type from the input type.
source§impl From<ConceptVariable> for RolePlayerConstraint
impl From<ConceptVariable> for RolePlayerConstraint
source§fn from(player_var: ConceptVariable) -> Self
fn from(player_var: ConceptVariable) -> Self
Converts to this type from the input type.
source§impl From<RolePlayerConstraint> for RelationConstraint
impl From<RolePlayerConstraint> for RelationConstraint
source§fn from(constraint: RolePlayerConstraint) -> Self
fn from(constraint: RolePlayerConstraint) -> Self
Converts to this type from the input type.
source§impl From<String> for RolePlayerConstraint
impl From<String> for RolePlayerConstraint
source§impl PartialEq for RolePlayerConstraint
impl PartialEq for RolePlayerConstraint
source§fn eq(&self, other: &RolePlayerConstraint) -> bool
fn eq(&self, other: &RolePlayerConstraint) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Validatable for RolePlayerConstraint
impl Validatable for RolePlayerConstraint
impl Eq for RolePlayerConstraint
impl StructuralEq for RolePlayerConstraint
impl StructuralPartialEq for RolePlayerConstraint
Auto Trait Implementations§
impl RefUnwindSafe for RolePlayerConstraint
impl Send for RolePlayerConstraint
impl Sync for RolePlayerConstraint
impl Unpin for RolePlayerConstraint
impl UnwindSafe for RolePlayerConstraint
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