Struct clingo::AstStatement
[−]
[src]
pub struct AstStatement<'a, T: 'a> { /* fields omitted */ }
Representation of a program statement.
Methods
impl<'a, T> AstStatement<'a, T>
[src]
pub fn location(&self) -> Location
[src]
Get the location of the statement.
pub fn statement_type(&self) -> StatementType
[src]
Get the type of the statement.
pub fn rule(&self) -> Result<&Rule, WrapperError>
[src]
Get a reference to the rule if the statement is a rule.
pub fn external(&self) -> Result<&External, WrapperError>
[src]
Get a reference to the external if the statement type is External
.
pub fn project_signature(&self) -> Result<Signature, WrapperError>
[src]
Get project signature if the statement type is ProjectAtomSignature
.
Trait Implementations
impl<'a, T: Clone + 'a> Clone for AstStatement<'a, T>
[src]
fn clone(&self) -> AstStatement<'a, T>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more