pub struct Syntax {
pub directives: Vec<DirectiveSyntax>,
pub roles: Vec<RoleSyntax>,
}Expand description
Syntax extensions: directives and roles that plugins give meaning to.
Parsers read them with their format’s syntax (in reStructuredText,
.. name:: argument and :name:`text`; in Markdown, MyST’s
```{name} argument fences and {name}`text`) and make
format-neutral nodes of them; see “Syntax extensions” in
spec/wire.md for the shape.
Fields§
§directives: Vec<DirectiveSyntax>Block-level directives.
roles: Vec<RoleSyntax>Inline roles.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Syntax
impl<'de> Deserialize<'de> for Syntax
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
impl StructuralPartialEq for Syntax
Auto Trait Implementations§
impl Forget for Syntax
impl Freeze for Syntax
impl Move for Syntax
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnsafeUnpin for Syntax
impl UnwindSafe for Syntax
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