pub enum SurroundingDeclarationResult {
Declaration(DeclarationTargetInfo),
None,
}Expand description
Result for ModuleQuerySelector::SurroundingDeclaration.
Variants§
Declaration(DeclarationTargetInfo)
None
Trait Implementations§
Source§impl Clone for SurroundingDeclarationResult
impl Clone for SurroundingDeclarationResult
Source§fn clone(&self) -> SurroundingDeclarationResult
fn clone(&self) -> SurroundingDeclarationResult
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 SurroundingDeclarationResult
impl Debug for SurroundingDeclarationResult
impl Eq for SurroundingDeclarationResult
Source§impl PartialEq for SurroundingDeclarationResult
impl PartialEq for SurroundingDeclarationResult
Source§fn eq(&self, other: &SurroundingDeclarationResult) -> bool
fn eq(&self, other: &SurroundingDeclarationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SurroundingDeclarationResult
Source§impl<'lean> TryFromLean<'lean> for SurroundingDeclarationResult
impl<'lean> TryFromLean<'lean> for SurroundingDeclarationResult
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 SurroundingDeclarationResult
impl RefUnwindSafe for SurroundingDeclarationResult
impl Send for SurroundingDeclarationResult
impl Sync for SurroundingDeclarationResult
impl Unpin for SurroundingDeclarationResult
impl UnsafeUnpin for SurroundingDeclarationResult
impl UnwindSafe for SurroundingDeclarationResult
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