pub struct RolePlayerConstraint {
    pub role_type: Option<TypeReference>,
    pub player: ConceptVariable,
    pub repetition: u64,
}

Fields§

§role_type: Option<TypeReference>§player: ConceptVariable§repetition: u64

Implementations§

source§

impl RolePlayerConstraint

source

pub fn new(role_type: Option<TypeReference>, player: ConceptVariable) -> Self

source

pub fn variables(&self) -> Box<dyn Iterator<Item = VariableRef<'_>> + '_>

Trait Implementations§

source§

impl Clone for RolePlayerConstraint

source§

fn clone(&self) -> RolePlayerConstraint

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RolePlayerConstraint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for RolePlayerConstraint

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<&str> for RolePlayerConstraint

source§

fn from(player_var: &str) -> Self

Converts to this type from the input type.
source§

impl From<(&str, &str)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (&str, &str)) -> Self

Converts to this type from the input type.
source§

impl From<(ConceptVariable, ConceptVariable)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (ConceptVariable, ConceptVariable)) -> Self

Converts to this type from the input type.
source§

impl From<(Label, ConceptVariable)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (Label, ConceptVariable)) -> Self

Converts to this type from the input type.
source§

impl From<(Label, String)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (Label, String)) -> Self

Converts to this type from the input type.
source§

impl From<(String, ConceptVariable)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (String, ConceptVariable)) -> Self

Converts to this type from the input type.
source§

impl From<(String, String)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (String, String)) -> Self

Converts to this type from the input type.
source§

impl From<(TypeReference, ConceptVariable)> for RolePlayerConstraint

source§

fn from((role_type, player_var): (TypeReference, ConceptVariable)) -> Self

Converts to this type from the input type.
source§

impl From<ConceptVariable> for RolePlayerConstraint

source§

fn from(player_var: ConceptVariable) -> Self

Converts to this type from the input type.
source§

impl From<RolePlayerConstraint> for RelationConstraint

source§

fn from(constraint: RolePlayerConstraint) -> Self

Converts to this type from the input type.
source§

impl From<String> for RolePlayerConstraint

source§

fn from(player_var: String) -> Self

Converts to this type from the input type.
source§

impl PartialEq for RolePlayerConstraint

source§

fn eq(&self, other: &RolePlayerConstraint) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Validatable for RolePlayerConstraint

source§

fn validate(&self) -> Result

source§

fn validated(self) -> Result<Self>

source§

impl Eq for RolePlayerConstraint

source§

impl StructuralEq for RolePlayerConstraint

source§

impl StructuralPartialEq for RolePlayerConstraint

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.