pub struct Raw<'a> {
pub content: &'a str,
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: &'a str§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<'a> StructuralPartialEq for Raw<'a>
Auto Trait Implementations§
impl<'a> Freeze for Raw<'a>
impl<'a> RefUnwindSafe for Raw<'a>
impl<'a> Send for Raw<'a>
impl<'a> Sync for Raw<'a>
impl<'a> Unpin for Raw<'a>
impl<'a> UnsafeUnpin for Raw<'a>
impl<'a> UnwindSafe for Raw<'a>
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