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

Method unpack_option

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

Source from the content-addressed store, hash-verified

26 }
27
28 fn unpack_option(&self) -> Self {
29 option_inner(self).cloned().unwrap_or_else(|| self.clone())
30 }
31}
32
33#[derive(Debug, Default, FromAttributes)]

Callers 7

parse_keyword_tokensMethod · 0.80
parse_normal_tokensMethod · 0.80
atom_match_armMethod · 0.80
atom_parse_if_peekMethod · 0.80
peek_tokensMethod · 0.80
renderMethod · 0.80
discriminatorMethod · 0.80

Calls 2

option_innerFunction · 0.85
cloneMethod · 0.80

Tested by

no test coverage detected