Coverage Report

Created: 2026-03-31 07:45

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/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
1.40M
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
1.40M
       vec![T::default().clone();len].into()
10
1.40M
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::alloc_cell
Line
Count
Source
8
330k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
330k
       vec![T::default().clone();len].into()
10
330k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::alloc_cell
Line
Count
Source
8
278k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
278k
       vec![T::default().clone();len].into()
10
278k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::alloc_cell
Line
Count
Source
8
137k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
137k
       vec![T::default().clone();len].into()
10
137k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::alloc_cell
Line
Count
Source
8
175k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
175k
       vec![T::default().clone();len].into()
10
175k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::alloc_cell
Line
Count
Source
8
148k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
148k
       vec![T::default().clone();len].into()
10
148k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::alloc_cell
Line
Count
Source
8
61.1k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
61.1k
       vec![T::default().clone();len].into()
10
61.1k
   }
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::alloc_cell
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::alloc_cell
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::alloc_cell
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::alloc_cell
Line
Count
Source
8
122k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
122k
       vec![T::default().clone();len].into()
10
122k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::alloc_cell
Line
Count
Source
8
101k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
101k
       vec![T::default().clone();len].into()
10
101k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::alloc_cell
Line
Count
Source
8
49.1k
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
49.1k
       vec![T::default().clone();len].into()
10
49.1k
   }
11
4.77M
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
4.77M
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::free_cell
Line
Count
Source
11
865k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
865k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::free_cell
Line
Count
Source
11
660k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
660k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::free_cell
Line
Count
Source
11
661k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
661k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::free_cell
Line
Count
Source
11
678k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
678k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::free_cell
Line
Count
Source
11
578k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
578k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::free_cell
Line
Count
Source
11
562k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
562k
   }
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::free_cell
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::free_cell
Unexecuted instantiation: <alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::free_cell
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<brotli_decompressor::huffman::HuffmanCode>>::free_cell
Line
Count
Source
11
307k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
307k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u8>>::free_cell
Line
Count
Source
11
232k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
232k
   }
<alloc_stdlib::std_alloc::StandardAlloc as alloc_no_stdlib::stack_allocator::Allocator<u32>>::free_cell
Line
Count
Source
11
231k
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
231k
   }
14
}