pub struct Argument {
pub id: ArgumentId,
pub conclusion: Literal,
pub origin: Origin,
pub sub_arguments: Vec<ArgumentId>,
}Expand description
An ASPIC+ argument.
Fields§
§id: ArgumentIdThis argument’s id.
conclusion: LiteralThe conclusion of the argument (the literal it supports).
origin: OriginThe origin of the argument: a premise (leaf) or a rule application.
sub_arguments: Vec<ArgumentId>The ids of sub-arguments this argument depends on.
Implementations§
Source§impl Argument
impl Argument
Sourcepub fn is_premise(&self) -> bool
pub fn is_premise(&self) -> bool
Whether this argument is a premise leaf.
Sourcepub fn top_rule_is_defeasible(&self, rules: &[Rule]) -> bool
pub fn top_rule_is_defeasible(&self, rules: &[Rule]) -> bool
Whether this argument ends in a defeasible rule application.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Argument
impl RefUnwindSafe for Argument
impl Send for Argument
impl Sync for Argument
impl Unpin for Argument
impl UnsafeUnpin for Argument
impl UnwindSafe for Argument
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