Crate bow [] [src]

This crate provides a reasonable extension to the existing Cow type and ToOwned trait from the standard library, converting types to a box instead of a resizable collection.

It provides one trait, ToBox, which allows converting a type into a box, and Bow, to represent types which are "boxed-on-write."

Enums

Bow

Like a Cow, using ToBox instead of ToOwned.

Traits

ToBox

Like ToOwned, boxing types instead of converting them into different types altogether.