pub struct BatLanguage {}Expand description
Windows Batch (BAT) language configuration and metadata.
Implementations§
Source§impl BatLanguage
impl BatLanguage
Trait Implementations§
Source§impl<'config> Builder<BatLanguage> for BatBuilder<'config>
impl<'config> Builder<BatLanguage> for BatBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<BatLanguage>,
) -> BuildOutput<BatLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<BatLanguage>, ) -> BuildOutput<BatLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for BatLanguage
impl Clone for BatLanguage
Source§fn clone(&self) -> BatLanguage
fn clone(&self) -> BatLanguage
Returns a duplicate of the value. Read more
1.0.0 · 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 BatLanguage
impl Debug for BatLanguage
Source§impl Default for BatLanguage
impl Default for BatLanguage
Source§fn default() -> BatLanguage
fn default() -> BatLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BatLanguage
impl<'de> Deserialize<'de> for BatLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for BatLanguage
impl Hash for BatLanguage
Source§impl Language for BatLanguage
impl Language for BatLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = BatTokenType
type TokenType = BatTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = BatElementType
type ElementType = BatElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<BatLanguage> for BatLexer<'config>
impl<'config> Lexer<BatLanguage> for BatLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<BatLanguage>,
) -> LexOutput<BatLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<BatLanguage>, ) -> LexOutput<BatLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl Ord for BatLanguage
impl Ord for BatLanguage
Source§fn cmp(&self, other: &BatLanguage) -> Ordering
fn cmp(&self, other: &BatLanguage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'config> Parser<BatLanguage> for BatParser<'config>
impl<'config> Parser<BatLanguage> for BatParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<BatLanguage>,
) -> ParseOutput<'a, BatLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<BatLanguage>, ) -> ParseOutput<'a, BatLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for BatLanguage
impl PartialEq for BatLanguage
Source§impl PartialOrd for BatLanguage
impl PartialOrd for BatLanguage
Source§impl Serialize for BatLanguage
impl Serialize for BatLanguage
impl Copy for BatLanguage
impl Eq for BatLanguage
impl StructuralPartialEq for BatLanguage
Auto Trait Implementations§
impl Freeze for BatLanguage
impl RefUnwindSafe for BatLanguage
impl Send for BatLanguage
impl Sync for BatLanguage
impl Unpin for BatLanguage
impl UnsafeUnpin for BatLanguage
impl UnwindSafe for BatLanguage
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