pub(crate) struct EvaluationState<'a> {
pub(crate) document: Document,
pub(crate) diagnostics: Vec<Diagnostic>,
pub(crate) metadata: DocumentMetadata,
pub(crate) current_text_size_pt: f64,
pub(crate) resources: ResourceSnapshot,
pub(crate) reader: &'a dyn ResourceReader,
pub(crate) pending_doc: Option<String>,
}Fields§
§document: Document§diagnostics: Vec<Diagnostic>§metadata: DocumentMetadata§current_text_size_pt: f64§resources: ResourceSnapshot§reader: &'a dyn ResourceReader§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<'a> EvaluationState<'a>
impl<'a> EvaluationState<'a>
pub(crate) fn new(tree: &SyntaxTree, reader: &'a dyn ResourceReader) -> Self
pub(crate) fn finish(self, tree: &SyntaxTree) -> 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<'a> !RefUnwindSafe for EvaluationState<'a>
impl<'a> !Send for EvaluationState<'a>
impl<'a> !Sync for EvaluationState<'a>
impl<'a> !UnwindSafe for EvaluationState<'a>
impl<'a> Freeze for EvaluationState<'a>
impl<'a> Unpin for EvaluationState<'a>
impl<'a> UnsafeUnpin for EvaluationState<'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