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

Method clone

crates/css_parse/src/bump_box.rs:46–49  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

44
45impl<T: Clone> Clone for BumpBox<'_, T> {
46 fn clone(&self) -> Self {
47 let cloned = self.ptr.clone();
48 Self { bump: self.bump, ptr: self.bump.alloc(cloned) }
49 }
50}
51
52impl<T: fmt::Debug> fmt::Debug for BumpBox<'_, T> {

Callers 15

extract_atom_stringFunction · 0.80
generateFunction · 0.80
test_caseFunction · 0.80
pluralizeFunction · 0.80
rewrite_options_typeMethod · 0.80
generate_definitionMethod · 0.80
bitsMethod · 0.80
parseMethod · 0.80
parse_ascii_lowerMethod · 0.80
newMethod · 0.80

Calls

no outgoing calls

Tested by 4

test_caseFunction · 0.64
newMethod · 0.64
parse_spec_propertiesFunction · 0.64