A CompiledDocument
is a Document
that has been processed and
is ready to be scanned. During compilation, the IEQL document compiler
extracts the following information from the Document
:
- text — the text of the document. Currently, only HTML parsing is supported.
- domain — the domain name, if present, is also processed.
- raw — unlike
Documents
, whose contents are bytes, CompiledDocuments
have text.
In cases that the document is not HTML, text
is identical to raw
.
domain: Option<String>
pub fn content(&self, content: ScopeContent) -> &String | [src] |
This function returns the document content relative to the
given ScopeContent
. For example, if the ScopeContent
is Raw
, this function will return the document's Raw
data.
If it is Text
, this function will return the document's parsed
text.
Returns a compiled version of self
, without using self. Importantly, compiling a component will perform a deep clone on that component. Remember: compilation is expensive! Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static