Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/csskit/csskit
/ first_segment
Method
first_segment
crates/csskit_derives/src/attributes.rs:62–64 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
60
}
61
62
pub fn first_segment(&self) -> Ident {
63
self.0.path.segments.first().expect(
"atom path must have at least one segment"
).ident.clone()
64
}
65
}
66
67
impl ToTokens for Atom {
Callers
5
atom_match_arm
Method · 0.80
atom_parse_if_peek
Method · 0.80
peek_tokens
Method · 0.80
render
Method · 0.80
to_atom
Method · 0.80
Calls
1
clone
Method · 0.80
Tested by
no test coverage detected