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

Method to_atom

crates/csskit_derives/src/attributes.rs:57–60  ·  view source on GitHub ↗
(&self, cursor: Ident)

Source from the content-addressed store, hash-verified

55 }
56
57 pub fn to_atom(&self, cursor: Ident) -> TokenStream {
58 let atom_set = self.first_segment();
59 quote! { p.to_atom::<#atom_set>(#cursor) }
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()

Callers 1

renderMethod · 0.45

Calls 1

first_segmentMethod · 0.80

Tested by

no test coverage detected