Struct clingo::Signature [] [src]

pub struct Signature(_);

Represents a predicate signature.

Signatures have a name and an arity, and can be positive or negative (to represent classical negation).

Methods

impl Signature
[src]

[src]

Create a new signature.

Arguments

  • name name of the signature
  • arity arity of the signature
  • positive false if the signature has a classical negation sign

Errors

[src]

Create a statement for the signature.

[src]

Get the name of a signature.

Errors

[src]

Get the arity of a signature.

[src]

Whether the signature is positive (is not classically negated).

[src]

Whether the signature is negative (is classically negated).

Trait Implementations

impl Debug for Signature
[src]

[src]

Formats the value using the given formatter. Read more

impl Copy for Signature
[src]

impl Clone for Signature
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Signature
[src]

[src]

Check if two signatures are equal.

1.0.0
[src]

This method tests for !=.

impl Eq for Signature
[src]

impl PartialOrd for Signature
[src]

[src]

Compare two signatures.

Signatures are compared first by sign (unsigned < signed), then by arity, then by name.

1.0.0
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

1.0.0
[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

1.0.0
[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

1.0.0
[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Hash for Signature
[src]

[src]

Calculate a hash code of a signature.

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Signature

impl Sync for Signature