#[non_exhaustive]pub enum LeanWorkerSurroundingDeclarationResult {
Declaration {
info: LeanWorkerDeclarationTargetInfo,
},
None,
}Expand description
Result for LeanWorkerModuleQuerySelector::SurroundingDeclaration.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for LeanWorkerSurroundingDeclarationResult
impl Clone for LeanWorkerSurroundingDeclarationResult
Source§fn clone(&self) -> LeanWorkerSurroundingDeclarationResult
fn clone(&self) -> LeanWorkerSurroundingDeclarationResult
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 LeanWorkerSurroundingDeclarationResult
impl<'de> Deserialize<'de> for LeanWorkerSurroundingDeclarationResult
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerSurroundingDeclarationResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LeanWorkerSurroundingDeclarationResult, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LeanWorkerSurroundingDeclarationResult
Source§impl PartialEq for LeanWorkerSurroundingDeclarationResult
impl PartialEq for LeanWorkerSurroundingDeclarationResult
Source§fn eq(&self, other: &LeanWorkerSurroundingDeclarationResult) -> bool
fn eq(&self, other: &LeanWorkerSurroundingDeclarationResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LeanWorkerSurroundingDeclarationResult
impl Serialize for LeanWorkerSurroundingDeclarationResult
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 LeanWorkerSurroundingDeclarationResult
Auto Trait Implementations§
impl Freeze for LeanWorkerSurroundingDeclarationResult
impl RefUnwindSafe for LeanWorkerSurroundingDeclarationResult
impl Send for LeanWorkerSurroundingDeclarationResult
impl Sync for LeanWorkerSurroundingDeclarationResult
impl Unpin for LeanWorkerSurroundingDeclarationResult
impl UnsafeUnpin for LeanWorkerSurroundingDeclarationResult
impl UnwindSafe for LeanWorkerSurroundingDeclarationResult
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