MCPcopy Create free account
hub / github.com/csskit/csskit / with_size

Method with_size

crates/css_parse/src/traits/node_metadata.rs:8–10  ·  view source on GitHub ↗

Sets the size of this metadata (e.g., number of declarations, selector list length). Default implementation is a no-op for metadata types that don't track size.

(self, _size: u16)

Source from the content-addressed store, hash-verified

6 /// Sets the size of this metadata (e.g., number of declarations, selector list length).
7 /// Default implementation is a no-op for metadata types that don't track size.
8 fn with_size(self, _size: u16) -> Self {
9 self
10 }
11}
12
13/// A Node that has NodeMetadata

Callers 1

parseMethod · 0.45

Implementers 3

metadata.rscrates/css_ast/src/metadata.rs
metadata.rscrates/csskit_ast/src/selector/metadat
node_metadata.rscrates/css_parse/src/traits/node_metad

Calls

no outgoing calls

Tested by

no test coverage detected