pub struct Raw {
pub content: String,
pub location: Location,
pub subs: Vec<Substitution>,
}Expand description
A Raw represents a raw text section in a document.
This is the most basic form of text in a document and it should note that its contents must be rendered as they are (e.g: “<h1>” should not end up being a <h1> tag, it should be “<h1>” text in html, very likely <h1>).
Fields§
§content: String§location: Location§subs: Vec<Substitution>The substitutions to apply when rendering this node.
Carries the passthrough’s own substitution list (minus Quotes, which are
already handled during parsing). The converter uses these subs directly
instead of the enclosing block’s substitutions. An empty vec means no
substitutions (raw output), as with +++text+++ and pass:[text].
Trait Implementations§
impl StructuralPartialEq for Raw
Auto Trait Implementations§
impl Freeze for Raw
impl RefUnwindSafe for Raw
impl Send for Raw
impl Sync for Raw
impl Unpin for Raw
impl UnwindSafe for Raw
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