pub struct Parts<'a> {
pub pre: &'a str,
pub frontmatter: &'a str,
pub post: &'a str,
}Expand description
Three byte-exact spans of a frontmatter document: the opening delimiter line
(pre), the frontmatter block handed to the inner backend (frontmatter),
and the closing delimiter line plus the body (post). Concatenating pre,
frontmatter, and post reproduces the original source byte for byte.
Fields§
§pre: &'a str§frontmatter: &'a str§post: &'a strTrait Implementations§
impl<'a> Copy for Parts<'a>
impl<'a> Eq for Parts<'a>
impl<'a> StructuralPartialEq for Parts<'a>
Auto Trait Implementations§
impl<'a> Freeze for Parts<'a>
impl<'a> RefUnwindSafe for Parts<'a>
impl<'a> Send for Parts<'a>
impl<'a> Sync for Parts<'a>
impl<'a> Unpin for Parts<'a>
impl<'a> UnsafeUnpin for Parts<'a>
impl<'a> UnwindSafe for Parts<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.