[][src]Crate fallible_collections

impl Fallible collections on allocation errors, quite as describe in RFC 2116 This was used in the turbofish OS hobby project to mitigate the the lack of faillible allocation in rust.

Re-exports

pub use boxed::*;
pub use vec::*;
pub use rc::*;
pub use arc::*;

Modules

arc

Implement a Fallible Arc

boxed

Implement Fallible Box

btree

Implement Fallible Btree, As there is no try_reserve methods on btree, I add no choice but to fork the std implementation and change return types.

format

A try_format! macro replacing format!

rc

Implement a Fallible Rc

try_clone

this module implements try clone for primitive rust types

vec

Implement Fallible Vec

Macros

try_vec

macro trying to create a vec, return a Result<Vec,TryReserveError>

tryformat

Take a max capacity a try allocating a string with it.

Traits

TryClone

trait for trying to clone an elem, return an error instead of panic if allocation failed