pub enum TypeAtResult {
Term {
span: ModuleSourceSpan,
expr: RenderedInfo,
type_str: RenderedInfo,
expected_type: Option<RenderedInfo>,
},
NoTerm,
}Expand description
Result for ModuleQuery::TypeAt.
Variants§
Term
Fields
§
span: ModuleSourceSpan§
expr: RenderedInfo§
type_str: RenderedInfo§
expected_type: Option<RenderedInfo>NoTerm
Trait Implementations§
Source§impl Clone for TypeAtResult
impl Clone for TypeAtResult
Source§fn clone(&self) -> TypeAtResult
fn clone(&self) -> TypeAtResult
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 TypeAtResult
impl Debug for TypeAtResult
impl Eq for TypeAtResult
Source§impl PartialEq for TypeAtResult
impl PartialEq for TypeAtResult
Source§fn eq(&self, other: &TypeAtResult) -> bool
fn eq(&self, other: &TypeAtResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TypeAtResult
Source§impl<'lean> TryFromLean<'lean> for TypeAtResult
impl<'lean> TryFromLean<'lean> for TypeAtResult
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 TypeAtResult
impl RefUnwindSafe for TypeAtResult
impl Send for TypeAtResult
impl Sync for TypeAtResult
impl Unpin for TypeAtResult
impl UnsafeUnpin for TypeAtResult
impl UnwindSafe for TypeAtResult
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