pub struct DotLanguage {
pub strict_mode: bool,
pub allow_digraph: bool,
}Expand description
DOT 语言配置(Graphviz)
Fields§
§strict_mode: bool是否启用严格模式
allow_digraph: bool是否允许有向图
Implementations§
Source§impl DotLanguage
impl DotLanguage
Trait Implementations§
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 = DotSyntaxKind
type TokenType = DotSyntaxKind
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = DotSyntaxKind
type ElementType = DotSyntaxKind
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 given 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. 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 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