/rust/registry/src/index.crates.io-1949cf8c6b5b557f/alloc-stdlib-0.2.2/src/std_alloc.rs
Line | Count | Source |
1 | | use super::heap_alloc::WrapBox; |
2 | | use super::{Allocator}; |
3 | | #[derive(Default, Clone, Copy, Debug)] |
4 | | pub struct StandardAlloc{} |
5 | | |
6 | | impl<T: Clone+Default> Allocator<T> for StandardAlloc { |
7 | | type AllocatedMemory = WrapBox<T>; |
8 | 167k | fn alloc_cell(&mut self, len : usize) -> WrapBox<T> { |
9 | 167k | vec![T::default().clone();len].into() |
10 | 167k | } Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::interface::Command<brotli::enc::interface::SliceOffset>>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::entropy_encode::HuffmanTree>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::compat::Compat16x16>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::compat::CompatF8>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::cluster::HistogramPair>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::command::Command>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::ContextType>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramCommand>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramLiteral>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramDistance>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::backward_references::hash_to_binary_tree::ZopfliNode>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<f32>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<i32>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u16>>::alloc_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u64>>::alloc_cell <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::alloc_cell Line | Count | Source | 8 | 62.7k | fn alloc_cell(&mut self, len : usize) -> WrapBox<T> { | 9 | 62.7k | vec![T::default().clone();len].into() | 10 | 62.7k | } |
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::alloc_cell Line | Count | Source | 8 | 57.8k | fn alloc_cell(&mut self, len : usize) -> WrapBox<T> { | 9 | 57.8k | vec![T::default().clone();len].into() | 10 | 57.8k | } |
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::alloc_cell Line | Count | Source | 8 | 46.7k | fn alloc_cell(&mut self, len : usize) -> WrapBox<T> { | 9 | 46.7k | vec![T::default().clone();len].into() | 10 | 46.7k | } |
|
11 | 541k | fn free_cell(&mut self, _data : WrapBox<T>) { |
12 | | |
13 | 541k | } Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::interface::Command<brotli::enc::interface::SliceOffset>>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::entropy_encode::HuffmanTree>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::compat::Compat16x16>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::compat::CompatF8>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::cluster::HistogramPair>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::command::Command>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::ContextType>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramCommand>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramLiteral>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::histogram::HistogramDistance>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli::enc::backward_references::hash_to_binary_tree::ZopfliNode>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<f32>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<i32>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u16>>::free_cell Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u64>>::free_cell <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::free_cell Line | Count | Source | 11 | 203k | fn free_cell(&mut self, _data : WrapBox<T>) { | 12 | | | 13 | 203k | } |
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::free_cell Line | Count | Source | 11 | 150k | fn free_cell(&mut self, _data : WrapBox<T>) { | 12 | | | 13 | 150k | } |
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::free_cell Line | Count | Source | 11 | 187k | fn free_cell(&mut self, _data : WrapBox<T>) { | 12 | | | 13 | 187k | } |
|
14 | | } |