pub struct TextSpec {
pub comment_syntax: Option<CommentSyntax>,
pub nodes: Vec<DocumentNode>,
pub line_ending: LineEndingSpec,
}Expand description
A plain text document, rendered node by node.
Fields§
§comment_syntax: Option<CommentSyntax>The comment syntax used to render comment nodes, if any.
nodes: Vec<DocumentNode>The document’s ordered nodes.
line_ending: LineEndingSpecThe line ending of the written document.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TextSpec
impl RefUnwindSafe for TextSpec
impl Send for TextSpec
impl Sync for TextSpec
impl Unpin for TextSpec
impl UnsafeUnpin for TextSpec
impl UnwindSafe for TextSpec
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