Home
last modified time | relevance | path

Searched refs:HeapSize (Results 1 - 4 of 4) sorted by relevance

/third_party/rust/crates/syn/examples/heapsize/heapsize/src/
H A Dlib.rs5 pub trait HeapSize { traits
19 impl HeapSize for u8 {
26 impl HeapSize for String {
33 impl<T> HeapSize for Box<T>
35 T: ?Sized + HeapSize,
45 impl<T> HeapSize for [T] impls
47 T: HeapSize,
52 self.iter().map(HeapSize::heap_size_of_children).sum() in heap_size_of_children()
56 impl<'a, T> HeapSize for &'a T impls
/third_party/rust/crates/syn/examples/heapsize/heapsize_derive/src/
H A Dlib.rs8 #[proc_macro_derive(HeapSize)]
16 // Add a bound `T: HeapSize` to every type parameter T. in derive_heap_size()
25 impl #impl_generics heapsize::HeapSize for #name #ty_generics #where_clause { in derive_heap_size()
36 // Add a bound `T: HeapSize` to every type parameter T.
40 type_param.bounds.push(parse_quote!(heapsize::HeapSize)); in add_trait_bounds()
61 // implement `HeapSize` then the compiler's error message in heap_size_sum()
67 heapsize::HeapSize::heap_size_of_children(&self.#name) in heap_size_sum()
81 heapsize::HeapSize::heap_size_of_children(&self.#index) in heap_size_sum()
/third_party/rust/crates/syn/examples/heapsize/example/src/
H A Dmain.rs1 use heapsize::HeapSize;
3 #[derive(HeapSize)]
/third_party/sqlite/src/
H A Dsqlite3.c[all...]

Completed in 124 milliseconds