pub struct RstLanguage {
pub allow_directives: bool,
pub allow_substitutions: bool,
pub allow_roles: bool,
pub allow_footnotes: bool,
pub allow_citations: bool,
pub allow_admonitions: bool,
}Expand description
The reStructuredText language definition for Oaks.
Fields§
§allow_directives: boolWhether to allow directives.
allow_substitutions: boolWhether to allow substitutions.
allow_roles: boolWhether to allow roles.
allow_footnotes: boolWhether to allow footnotes.
allow_citations: boolWhether to allow citations.
allow_admonitions: boolWhether to allow admonitions.
Trait Implementations§
Source§impl Clone for RstLanguage
impl Clone for RstLanguage
Source§fn clone(&self) -> RstLanguage
fn clone(&self) -> RstLanguage
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 RstLanguage
impl Debug for RstLanguage
Source§impl Default for RstLanguage
impl Default for RstLanguage
Source§fn default() -> RstLanguage
fn default() -> RstLanguage
Returns the “default value” for a type. Read more
Source§impl Language for RstLanguage
impl Language for RstLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Markup
const CATEGORY: LanguageCategory = LanguageCategory::Markup
The category of the language.
Source§type TokenType = RstTokenType
type TokenType = RstTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = RstElementType
type ElementType = RstElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§impl<'config> Lexer<RstLanguage> for RstLexer<'config>
impl<'config> Lexer<RstLanguage> for RstLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
text: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<RstLanguage>,
) -> LexOutput<RstLanguage>
fn lex<'a, S: Source + ?Sized>( &self, text: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<RstLanguage>, ) -> LexOutput<RstLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<RstLanguage> for RstParser<'config>
impl<'config> Parser<RstLanguage> for RstParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<RstLanguage>,
) -> ParseOutput<'a, RstLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<RstLanguage>, ) -> ParseOutput<'a, RstLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl Freeze for RstLanguage
impl RefUnwindSafe for RstLanguage
impl Send for RstLanguage
impl Sync for RstLanguage
impl Unpin for RstLanguage
impl UnsafeUnpin for RstLanguage
impl UnwindSafe for RstLanguage
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