pub struct BlockResult {
pub content: String,
pub ast: Option<Ast>,
pub loading: bool,
}Expand description
One processed block: the (preprocessed) source text and its cached AST.
Fields§
§content: StringPreprocessed content actually parsed (== source except for the last block).
ast: Option<Ast>Parsed AST (None for empty content).
loading: boolTrue when the preprocess step modified the content (streaming tail).
Trait Implementations§
Source§impl Clone for BlockResult
impl Clone for BlockResult
Source§fn clone(&self) -> BlockResult
fn clone(&self) -> BlockResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockResult
impl RefUnwindSafe for BlockResult
impl Send for BlockResult
impl Sync for BlockResult
impl Unpin for BlockResult
impl UnsafeUnpin for BlockResult
impl UnwindSafe for BlockResult
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