pub struct LeanTheorem {
pub obligation_name: String,
pub theorem_name: String,
pub property: String,
pub origin_summary: String,
pub declaration_start_line: usize,
pub declaration_end_line: usize,
}Expand description
Structured Lean theorem metadata derived from an obligation.
Fields§
§obligation_name: String§theorem_name: String§property: String§origin_summary: String§declaration_start_line: usize§declaration_end_line: usizeImplementations§
Source§impl LeanTheorem
impl LeanTheorem
pub fn witness_ref(&self, module_name: &str) -> String
pub fn contains_line(&self, line: usize) -> bool
pub fn with_line_span(self, start_line: usize, end_line: usize) -> LeanTheorem
Trait Implementations§
Source§impl Clone for LeanTheorem
impl Clone for LeanTheorem
Source§fn clone(&self) -> LeanTheorem
fn clone(&self) -> LeanTheorem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LeanTheorem
impl Debug for LeanTheorem
impl Eq for LeanTheorem
Source§impl From<&Obligation> for LeanTheorem
impl From<&Obligation> for LeanTheorem
Source§fn from(obligation: &Obligation) -> LeanTheorem
fn from(obligation: &Obligation) -> LeanTheorem
Converts to this type from the input type.
Source§impl PartialEq for LeanTheorem
impl PartialEq for LeanTheorem
Source§fn eq(&self, other: &LeanTheorem) -> bool
fn eq(&self, other: &LeanTheorem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LeanTheorem
Auto Trait Implementations§
impl Freeze for LeanTheorem
impl RefUnwindSafe for LeanTheorem
impl Send for LeanTheorem
impl Sync for LeanTheorem
impl Unpin for LeanTheorem
impl UnsafeUnpin for LeanTheorem
impl UnwindSafe for LeanTheorem
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