MCPcopy Create free account
hub / github.com/dropbox/rust-alloc-no-stdlib / SliceWrapper

Interface SliceWrapper

src/allocated_memory/mod.rs:8–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6pub use core::ops::Index;
7pub use core::ops::Range;
8pub trait SliceWrapper<T> {
9 fn slice(& self) -> & [T];
10 fn len(&self) -> usize{
11 self.slice().len()
12 }
13}
14
15pub trait SliceWrapperMut<T> : SliceWrapper<T> {
16 fn slice_mut (&mut self) -> & mut [T];

Callers 3

clear_if_necessaryMethod · 0.80
alloc_cellMethod · 0.80
free_cellMethod · 0.80

Implementers 5

test.rsalloc-stdlib/src/test.rs
heap_alloc.rsalloc-stdlib/src/heap_alloc.rs
allocated_stack_memory.rssrc/allocated_stack_memory.rs
tests.rssrc/tests.rs
heap_alloc.rssrc/bin/heap_alloc.rs

Calls

no outgoing calls

Tested by

no test coverage detected