pub enum ModuleQuery {
Diagnostics,
TypeAt {
line: u32,
column: u32,
},
GoalAt {
line: u32,
column: u32,
},
References {
name: String,
},
}Expand description
Query shape for one header-aware Lean module processing request.
Variants§
Diagnostics
Return only diagnostics from elaborating the module.
TypeAt
Return type information for the innermost term covering line:column.
Fields
GoalAt
Return tactic goals for the innermost tactic context covering line:column.
Fields
References
Return binder/use-site references whose recorded name exactly matches name.
Trait Implementations§
Source§impl Clone for ModuleQuery
impl Clone for ModuleQuery
Source§fn clone(&self) -> ModuleQuery
fn clone(&self) -> ModuleQuery
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 ModuleQuery
impl Debug for ModuleQuery
impl Eq for ModuleQuery
Source§impl<'lean> IntoLean<'lean> for ModuleQuery
impl<'lean> IntoLean<'lean> for ModuleQuery
Source§fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
fn into_lean(self, runtime: &'lean LeanRuntime) -> Obj<'lean>
Allocate (or scalar-box) a Lean representation of
self and return
the owned handle.Source§impl<'lean> LeanAbi<'lean> for ModuleQuery
impl<'lean> LeanAbi<'lean> for ModuleQuery
Source§impl<'lean> LeanAbi<'lean> for &ModuleQuery
impl<'lean> LeanAbi<'lean> for &ModuleQuery
Source§impl PartialEq for ModuleQuery
impl PartialEq for ModuleQuery
Source§fn eq(&self, other: &ModuleQuery) -> bool
fn eq(&self, other: &ModuleQuery) -> bool
Tests for
self and other values to be equal, and is used by ==.impl SealedAbi for ModuleQuery
impl SealedAbi for &ModuleQuery
impl StructuralPartialEq for ModuleQuery
Auto Trait Implementations§
impl Freeze for ModuleQuery
impl RefUnwindSafe for ModuleQuery
impl Send for ModuleQuery
impl Sync for ModuleQuery
impl Unpin for ModuleQuery
impl UnsafeUnpin for ModuleQuery
impl UnwindSafe for ModuleQuery
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'lean, T> DecodeCallResult<'lean> for Twhere
T: LeanAbi<'lean>,
impl<'lean, T> DecodeCallResult<'lean> for Twhere
T: LeanAbi<'lean>,
const EXPECTS_IO_RESULT: bool = false
Source§type CRepr = <T as LeanAbi<'lean>>::CRepr
type CRepr = <T as LeanAbi<'lean>>::CRepr
The C-ABI return type of the Lake-emitted function. For the pure
path this is
T::CRepr (e.g. u8 for Bool exports, *mut lean_object for String); for the IO path it is always
*mut lean_object (the lean_io_result_* wrapper).