pub(crate) struct EvaluationState {
pub(crate) document: Document,
pub(crate) diagnostics: Vec<Diagnostic>,
pub(crate) metadata: DocumentMetadata,
pub(crate) current_text_size_pt: f64,
pub(crate) reads_external_resources: bool,
pub(crate) pending_doc: Option<String>,
}Fields§
§document: Document§diagnostics: Vec<Diagnostic>§metadata: DocumentMetadata§current_text_size_pt: f64§reads_external_resources: bool§pending_doc: Option<String>Text of a /** … */ doc comment seen but not yet attached. The next
documentable block (heading, paragraph) consumes it as a doc
attribute; a non-documentable block (#set, list, raw block) clears it
so it never leaks onto a later node. None when no doc comment is pending.
Implementations§
Source§impl EvaluationState
impl EvaluationState
pub(crate) fn new(tree: &SyntaxTree) -> Self
pub(crate) fn finish(self) -> LowerResult
pub(crate) fn lower_item(&mut self, item: &Item, source_file: &Path)
pub(crate) fn lower_heading( &mut self, level: u8, inlines: &[Inline], label: Option<&str>, label_span: Option<&SourceSpan>, span: &SourceSpan, doc: Option<String>, )
pub(crate) fn lower_paragraph( &mut self, inlines: &[Inline], label: Option<&str>, label_span: Option<&SourceSpan>, span: &SourceSpan, doc: Option<String>, )
pub(crate) fn lower_directive( &mut self, kind: DirectiveKind, name: &str, args: &[SetArg], span: &SourceSpan, source_file: &Path, )
Auto Trait Implementations§
impl Freeze for EvaluationState
impl RefUnwindSafe for EvaluationState
impl Send for EvaluationState
impl Sync for EvaluationState
impl Unpin for EvaluationState
impl UnsafeUnpin for EvaluationState
impl UnwindSafe for EvaluationState
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