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

Method is_option

crates/csskit_derives/src/parse.rs:24–26  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

22
23impl TypeIsOption for Type {
24 fn is_option(&self) -> bool {
25 option_inner(self).is_some()
26 }
27
28 fn unpack_option(&self) -> Self {
29 option_inner(self).cloned().unwrap_or_else(|| self.clone())

Callers 7

parse_keyword_tokensMethod · 0.80
bindingMethod · 0.80
peek_tokensMethod · 0.80
renderMethod · 0.80
newMethod · 0.80
discriminatorMethod · 0.80
try_newMethod · 0.80

Calls 1

option_innerFunction · 0.85

Tested by

no test coverage detected