MCPcopy Create free account
hub / github.com/Stranger6667/css-inline / parse_with_options

Method parse_with_options

css-inline/src/html/document.rs:76–82  ·  view source on GitHub ↗
(
        bytes: &[u8],
        preallocate_node_capacity: usize,
        mode: InliningMode,
    )

Source from the content-addressed store, hash-verified

74
75impl Document {
76 pub(crate) fn parse_with_options(
77 bytes: &[u8],
78 preallocate_node_capacity: usize,
79 mode: InliningMode,
80 ) -> Document {
81 parser::parse_with_options(bytes, preallocate_node_capacity, mode)
82 }
83
84 pub(super) fn with_capacity(capacity: usize, input_size: usize) -> Self {
85 // Dummy node at index 0 so that other indices fit in NonZero

Callers

nothing calls this directly

Calls 1

parse_with_optionsFunction · 0.85

Tested by

no test coverage detected