paralegal_compiler::compile

Struct ClauseNumPropagator

Source
struct ClauseNumPropagator {
    current: String,
}

Fields§

§current: String

Trait Implementations§

Source§

impl VisitMut<'_> for ClauseNumPropagator

Source§

fn visit_ast_node_mut(&mut self, node: &mut ASTNode)

Source§

fn visit_clause_num_mut(&mut self, clause_num: &mut String)

Source§

fn visit_policy_mut(&mut self, policy: &'p mut Policy)

Source§

fn visit_definition_mut(&mut self, definition: &'p mut Definition)

Source§

fn visit_variable_mut(&mut self, _variable: &'p mut String)

Source§

fn visit_variable_intro_mut(&mut self, variable: &'p mut VariableIntro)

Source§

fn visit_clause_mut(&mut self, clause: &'p mut Clause)

Source§

fn visit_relation_mut(&mut self, relation: &'p mut Relation)

Source§

fn visit_only_via_mut( &mut self, intro: &'p mut VariableIntro, op1: &'p mut (Option<Operator>, Vec<VariableIntro>), op2: &'p mut (Option<Operator>, Vec<VariableIntro>), )

Source§

fn visit_joined_nodes_mut(&mut self, obligation: &'p mut TwoNodeObligation)

Source§

fn visit_clause_intro_mut(&mut self, intro: &'p mut ClauseIntro)

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> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

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>,

Source§

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.