pub struct DotLanguage {
pub strict_mode: bool,
pub allow_digraph: bool,
}Expand description
DOT language configuration (Graphviz).
Fields§
§strict_mode: boolWhether to enable strict mode.
allow_digraph: boolWhether to allow directed graphs.
Implementations§
Source§impl DotLanguage
impl DotLanguage
Trait Implementations§
Source§impl Builder<DotLanguage> for DotBuilder
impl Builder<DotLanguage> for DotBuilder
Source§fn build<'a, S: Source + ?Sized>(
&self,
_text: &S,
_edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<DotLanguage>,
) -> BuildOutput<DotLanguage>
fn build<'a, S: Source + ?Sized>( &self, _text: &S, _edits: &[TextEdit], _cache: &'a mut impl BuilderCache<DotLanguage>, ) -> BuildOutput<DotLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for DotLanguage
impl Clone for DotLanguage
Source§fn clone(&self) -> DotLanguage
fn clone(&self) -> DotLanguage
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 DotLanguage
impl Debug for DotLanguage
Source§impl Default for DotLanguage
impl Default for DotLanguage
Source§impl<'de> Deserialize<'de> for DotLanguage
impl<'de> Deserialize<'de> for DotLanguage
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 DotLanguage
impl Hash for DotLanguage
Source§impl Language for DotLanguage
impl Language for DotLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = DotTokenType
type TokenType = DotTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = DotElementType
type ElementType = DotElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<DotLanguage> for DotLexer<'config>
impl<'config> Lexer<DotLanguage> for DotLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<DotLanguage>,
) -> LexOutput<DotLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<DotLanguage>, ) -> LexOutput<DotLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<DotLanguage> for DotParser<'config>
impl<'config> Parser<DotLanguage> for DotParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<DotLanguage>,
) -> ParseOutput<'a, DotLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<DotLanguage>, ) -> ParseOutput<'a, DotLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for DotLanguage
impl PartialEq for DotLanguage
Source§impl Serialize for DotLanguage
impl Serialize for DotLanguage
impl Copy for DotLanguage
impl Eq for DotLanguage
impl StructuralPartialEq for DotLanguage
Auto Trait Implementations§
impl Freeze for DotLanguage
impl RefUnwindSafe for DotLanguage
impl Send for DotLanguage
impl Sync for DotLanguage
impl Unpin for DotLanguage
impl UnsafeUnpin for DotLanguage
impl UnwindSafe for DotLanguage
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