Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
23
impl 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_tokens
Method · 0.80
binding
Method · 0.80
peek_tokens
Method · 0.80
render
Method · 0.80
new
Method · 0.80
discriminator
Method · 0.80
try_new
Method · 0.80
Calls
1
option_inner
Function · 0.85
Tested by
no test coverage detected