#stack-allocated #owned #pointers

stack_ptr

An owned pointer to stack-allocated data

1 unstable release

Uses old Rust 2015

0.1.0 Apr 27, 2017

#33 in #stack-allocated

MIT license

5KB
93 lines

Provides StackPtr, an owned pointer to stack-allocated data. Create one using the provided stack_ptr! macro:

stack_ptr! {
    let slice: StackPtr<[_]> = StackPtr::new([1,2,3,4,5]);
}

No runtime deps

Features