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

Method add

crates/css_lexer/src/kindset.rs:103–105  ·  view source on GitHub ↗

Returns a new [KindSet] with the addition of the supplied [Kind]. This function is marked `const` to allow creation of const [KindSets][KindSet].

(&self, kind: Kind)

Source from the content-addressed store, hash-verified

101 ///
102 /// This function is marked `const` to allow creation of const [KindSets][KindSet].
103 pub const fn add(&self, kind: Kind) -> Self {
104 Self(self.0 | (1 << (kind as u8 & 0b111111)))
105 }
106
107 /// Returns a new [KindSet] combined with the other [KindSet].
108 ///

Callers 2

test_kindset_add_removeFunction · 0.45
eleventy.config.jsFile · 0.45

Calls

no outgoing calls

Tested by 1

test_kindset_add_removeFunction · 0.36