pub struct Accumulator {
pub frontmatter: Value,
pub frontmatter_raw: String,
pub imports: Vec<String>,
pub exports: Vec<String>,
pub plain: String,
pub toc_flat: Vec<(u8, String, String)>,
/* private fields */
}Fields§
§frontmatter: Value§frontmatter_raw: String§imports: Vec<String>§exports: Vec<String>§plain: StringText for excerpt + word count.
toc_flat: Vec<(u8, String, String)>(level, title, slug) pre-nest.
Implementations§
Source§impl Accumulator
impl Accumulator
pub fn new() -> Self
Sourcepub fn into_compile_output(
self,
source: &str,
html: String,
body: String,
_cfg: &CompileConfig,
) -> CompileOutput
pub fn into_compile_output( self, source: &str, html: String, body: String, _cfg: &CompileConfig, ) -> CompileOutput
cfg reserved for future excerpt-length / reading-rate tuning.
Trait Implementations§
Source§impl Debug for Accumulator
impl Debug for Accumulator
Source§impl Default for Accumulator
impl Default for Accumulator
Auto Trait Implementations§
impl Freeze for Accumulator
impl RefUnwindSafe for Accumulator
impl Send for Accumulator
impl Sync for Accumulator
impl Unpin for Accumulator
impl UnsafeUnpin for Accumulator
impl UnwindSafe for Accumulator
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more