Type Alias UncheckedDocument

Source
pub type UncheckedDocument = OpenDocument<Unchecked>;

Aliased Typeยง

pub struct UncheckedDocument {
    pub uri: DocumentURI,
    pub title: Option<Box<str>>,
    pub elements: Vec<DocumentElement<Unchecked>>,
    pub styles: DocumentStyles,
}

Fieldsยง

ยงuri: DocumentURIยงtitle: Option<Box<str>>ยงelements: Vec<DocumentElement<Unchecked>>ยงstyles: DocumentStyles

Implementationsยง

Sourceยง

impl UncheckedDocument

Source

pub fn dfs(&self) -> impl Iterator<Item = &DocumentElement<Unchecked>>

Source

pub fn check(self, checker: &mut impl DocumentChecker) -> Document

Sourceยง

impl UncheckedDocument

Source

pub fn search_index(&self, html: &str) -> Option<SearchIndex>

Available on crate feature tantivy only.
Source

pub fn all_searches(&self, html: &str) -> Vec<SearchIndex>

Available on crate feature tantivy only.

Trait Implementationsยง

Sourceยง

impl TreeLike for UncheckedDocument

Sourceยง

type Child<'a> = &'a DocumentElement<Unchecked>

Sourceยง

type RefIter<'a> = Iter<'a, DocumentElement<Unchecked>>

Sourceยง

fn children(&self) -> Option<Self::RefIter<'_>>

Sourceยง

fn dfs(&self) -> Option<DFSIter<'_, Self>>

Sourceยง

fn bfs(&self) -> Option<BFSIter<'_, Self>>

Sourceยง

fn bfs_par<'a>(&'a self) -> Option<ParSpliter<BFSIter<'a, Self>>>
where Self::Child<'a>: Send, Self::RefIter<'a>: Send,

Sourceยง

fn dfs_with_close<'a, R, SG, SL, Open, Close>( &'a self, state: &mut SG, open: Open, close: Close, ) -> Result<(), R>
where Open: FnMut(&mut SG, Self::Child<'a>) -> Result<DFSContinuation<SL>, R>, Close: FnMut(&mut SG, SL) -> Result<(), R>,

Sourceยง

fn display_nested<'a>( &'a self, f: &mut Formatter<'_>, open: impl Fn(&Self::Child<'a>, &mut Indentor<'_>, &mut Formatter<'_>) -> Result<DFSContinuation<()>, Error>, close: impl Fn(&Self::Child<'a>, &mut Formatter<'_>) -> Result<(), Error>, indent: Option<Indentor<'_>>, ) -> Result<(), Error>

Sourceยง

fn display_children<'a, I>( i: I, f: &mut Formatter<'_>, open: impl Fn(&Self::Child<'a>, &mut Indentor<'_>, &mut Formatter<'_>) -> Result<DFSContinuation<()>, Error>, close: impl Fn(&Self::Child<'a>, &mut Formatter<'_>) -> Result<(), Error>, indent: Option<Indentor<'_>>, ) -> Result<(), Error>
where I: Into<Self::RefIter<'a>>, Self: 'a,