Coverage Report

Created: 2026-09-28 07:39

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
0
   fn alloc_cell(&mut self, len : usize) -> WrapBox<T> {
9
0
       vec![T::default().clone();len].into()
10
0
   }
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
11
0
   fn free_cell(&mut self, _data : WrapBox<T>) {
12
13
0
   }
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
14
}