pub struct LeanWorkerDeclarationInspection {
pub name: String,
pub kind: String,
pub module: Option<String>,
pub source: Option<LeanWorkerSourceRange>,
pub statement: Option<LeanWorkerRenderedInfo>,
pub docstring: Option<LeanWorkerRenderedInfo>,
pub attributes: Vec<String>,
pub proof_search: LeanWorkerDeclarationProofSearchFacts,
pub flags: LeanWorkerDeclarationFlags,
pub derived_work: LeanWorkerDerivedWorkFacts,
pub statement_rendering: Option<LeanWorkerRendering>,
}Expand description
Bounded facts for one inspected declaration.
Fields§
§name: String§kind: String§module: Option<String>§source: Option<LeanWorkerSourceRange>§statement: Option<LeanWorkerRenderedInfo>§docstring: Option<LeanWorkerRenderedInfo>§attributes: Vec<String>§proof_search: LeanWorkerDeclarationProofSearchFacts§flags: LeanWorkerDeclarationFlags§derived_work: LeanWorkerDerivedWorkFacts§statement_rendering: Option<LeanWorkerRendering>Rendering that actually produced statement: Some(Pretty) or
Some(Raw), or None when no statement was requested. Lets the caller
tell whether the pretty path fired or fell back to the raw term.
Trait Implementations§
Source§impl Clone for LeanWorkerDeclarationInspection
impl Clone for LeanWorkerDeclarationInspection
Source§fn clone(&self) -> LeanWorkerDeclarationInspection
fn clone(&self) -> LeanWorkerDeclarationInspection
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<'de> Deserialize<'de> for LeanWorkerDeclarationInspection
impl<'de> Deserialize<'de> for LeanWorkerDeclarationInspection
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationInspection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerDeclarationInspection, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerDeclarationInspection
Source§impl PartialEq for LeanWorkerDeclarationInspection
impl PartialEq for LeanWorkerDeclarationInspection
Source§fn eq(&self, other: &LeanWorkerDeclarationInspection) -> bool
fn eq(&self, other: &LeanWorkerDeclarationInspection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeanWorkerDeclarationInspection
impl Serialize for LeanWorkerDeclarationInspection
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for LeanWorkerDeclarationInspection
Auto Trait Implementations§
impl Freeze for LeanWorkerDeclarationInspection
impl RefUnwindSafe for LeanWorkerDeclarationInspection
impl Send for LeanWorkerDeclarationInspection
impl Sync for LeanWorkerDeclarationInspection
impl Unpin for LeanWorkerDeclarationInspection
impl UnsafeUnpin for LeanWorkerDeclarationInspection
impl UnwindSafe for LeanWorkerDeclarationInspection
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