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

Method remove

crates/css_lexer/src/kindset.rs:117–119  ·  view source on GitHub ↗

Returns a new [KindSet] without 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

115 ///
116 /// This function is marked `const` to allow creation of const [KindSets][KindSet].
117 pub const fn remove(&self, kind: Kind) -> Self {
118 Self(self.0 ^ (1 << (kind as u8 & 0b111111)))
119 }
120
121 /// Check if a [KindSet] contains the subpplied [Kind].
122 pub fn contains(&self, kind: Kind) -> bool {

Callers 7

to_chromashiftMethod · 0.80
deriveFunction · 0.80
connectedCallbackMethod · 0.80
updateFilterUIFunction · 0.80
renderForQueryFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected