pub struct ProofStep(/* private fields */);Expand description
One proof step.
Implementations§
Source§impl ProofStep
impl ProofStep
Sourcepub fn step_token(&self) -> Option<SyntaxToken>
pub fn step_token(&self) -> Option<SyntaxToken>
The step number token, e.g. <1>2..
Sourcepub fn body(&self) -> Option<SyntaxNode>
pub fn body(&self) -> Option<SyntaxNode>
The step body node.
Sourcepub fn proof(&self) -> Option<SyntaxNode>
pub fn proof(&self) -> Option<SyntaxNode>
The step’s proof, if any.
Trait Implementations§
Source§impl AstNode for ProofStep
impl AstNode for ProofStep
Source§fn can_cast(kind: SyntaxKind) -> bool
fn can_cast(kind: SyntaxKind) -> bool
Whether nodes of
kind can be wrapped.Source§fn cast(node: SyntaxNode) -> Option<Self>
fn cast(node: SyntaxNode) -> Option<Self>
Wraps
node if it has the right kind.Source§fn syntax(&self) -> &SyntaxNode
fn syntax(&self) -> &SyntaxNode
The underlying node.
impl Eq for ProofStep
impl StructuralPartialEq for ProofStep
Auto Trait Implementations§
impl !RefUnwindSafe for ProofStep
impl !Send for ProofStep
impl !Sync for ProofStep
impl !UnwindSafe for ProofStep
impl Forget for ProofStep
impl Freeze for ProofStep
impl Move for ProofStep
impl Unpin for ProofStep
impl UnsafeUnpin for ProofStep
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