pub struct LanguageCapability {Show 21 fields
pub id: &'static str,
pub display: &'static str,
pub tier: LanguageTier,
pub extensions: &'static [&'static str],
pub filenames: &'static [&'static str],
pub extractor: bool,
pub definitions: bool,
pub methods: bool,
pub classes: bool,
pub fields: bool,
pub calls: bool,
pub reads_writes: bool,
pub imports: bool,
pub inheritance: bool,
pub type_refs: bool,
pub macros: bool,
pub routes: bool,
pub state: bool,
pub contracts: bool,
pub tests: bool,
pub notes: &'static str,
}Expand description
Capability flags for one language. Generated surfaces must read these rather than assuming “we have a parser, therefore we extract X”.
Fields§
§id: &'static str§display: &'static str§tier: LanguageTier§extensions: &'static [&'static str]§filenames: &'static [&'static str]§extractor: bool§definitions: bool§methods: bool§classes: bool§fields: bool§calls: bool§reads_writes: bool§imports: bool§inheritance: bool§type_refs: bool§macros: bool§routes: bool§state: bool§contracts: bool§tests: bool§notes: &'static strTrait Implementations§
Source§impl Clone for LanguageCapability
impl Clone for LanguageCapability
impl Copy for LanguageCapability
Source§impl Debug for LanguageCapability
impl Debug for LanguageCapability
impl Eq for LanguageCapability
Source§impl PartialEq for LanguageCapability
impl PartialEq for LanguageCapability
Source§impl Serialize for LanguageCapability
impl Serialize for LanguageCapability
impl StructuralPartialEq for LanguageCapability
Auto Trait Implementations§
impl Freeze for LanguageCapability
impl RefUnwindSafe for LanguageCapability
impl Send for LanguageCapability
impl Sync for LanguageCapability
impl Unpin for LanguageCapability
impl UnsafeUnpin for LanguageCapability
impl UnwindSafe for LanguageCapability
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