pub struct DeclarationInspection {
pub name: String,
pub kind: String,
pub module: Option<String>,
pub source: Option<LeanSourceRange>,
pub statement: Option<DeclarationRenderedInfo>,
pub docstring: Option<DeclarationRenderedInfo>,
pub attributes: Vec<String>,
pub proof_search: DeclarationProofSearchFacts,
pub flags: DeclarationFlags,
pub derived_work: LeanDerivedWorkFacts,
pub statement_pretty: Option<bool>,
}Fields§
§name: String§kind: String§module: Option<String>§source: Option<LeanSourceRange>§statement: Option<DeclarationRenderedInfo>§docstring: Option<DeclarationRenderedInfo>§attributes: Vec<String>§proof_search: DeclarationProofSearchFacts§flags: DeclarationFlags§derived_work: LeanDerivedWorkFacts§statement_pretty: Option<bool>Rendering that produced statement: Some(true) = pretty, Some(false)
= raw, None when no statement was requested.
Trait Implementations§
Source§impl Clone for DeclarationInspection
impl Clone for DeclarationInspection
Source§fn clone(&self) -> DeclarationInspection
fn clone(&self) -> DeclarationInspection
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 DeclarationInspection
impl Debug for DeclarationInspection
impl Eq for DeclarationInspection
Source§impl PartialEq for DeclarationInspection
impl PartialEq for DeclarationInspection
impl StructuralPartialEq for DeclarationInspection
Source§impl<'lean> TryFromLean<'lean> for DeclarationInspection
impl<'lean> TryFromLean<'lean> for DeclarationInspection
Source§fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
fn try_from_lean(obj: Obj<'lean>) -> LeanResult<Self>
Decode
obj into Self, returning a
LeanError::Host with stage
[HostStage::Conversion] if the object’s kind or payload is
outside the type’s representable range. Read moreAuto Trait Implementations§
impl Freeze for DeclarationInspection
impl RefUnwindSafe for DeclarationInspection
impl Send for DeclarationInspection
impl Sync for DeclarationInspection
impl Unpin for DeclarationInspection
impl UnsafeUnpin for DeclarationInspection
impl UnwindSafe for DeclarationInspection
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