pub struct LanguageInfo {Show 13 fields
pub name: &'static str,
pub language: Language,
pub element_query: &'static str,
pub call_query: &'static str,
pub reference_query: Option<&'static str>,
pub import_query: Option<&'static str>,
pub impl_query: Option<&'static str>,
pub assignment_query: Option<&'static str>,
pub field_query: Option<&'static str>,
pub extract_function_name: Option<ExtractFunctionNameHandler>,
pub find_method_for_receiver: Option<FindMethodForReceiverHandler>,
pub find_receiver_type: Option<FindReceiverTypeHandler>,
pub extract_inheritance: Option<ExtractInheritanceHandler>,
}Expand description
Information about a supported language for code analysis.
Fields§
§name: &'static str§language: Language§element_query: &'static str§call_query: &'static str§reference_query: Option<&'static str>§import_query: Option<&'static str>§impl_query: Option<&'static str>§assignment_query: Option<&'static str>§field_query: Option<&'static str>§extract_function_name: Option<ExtractFunctionNameHandler>§find_method_for_receiver: Option<FindMethodForReceiverHandler>§find_receiver_type: Option<FindReceiverTypeHandler>§extract_inheritance: Option<ExtractInheritanceHandler>Auto Trait Implementations§
impl Freeze for LanguageInfo
impl RefUnwindSafe for LanguageInfo
impl Send for LanguageInfo
impl Sync for LanguageInfo
impl Unpin for LanguageInfo
impl UnsafeUnpin for LanguageInfo
impl UnwindSafe for LanguageInfo
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more