Crate as_is

source ·
Expand description

Development in progress

This crate provides a trait AsIs, an enum Is<'a, T>, and variants of them.

Re-exports

pub use borrow::ToOwned;

Structs

A stub for String used in a no_std environment.
A stub for Vec<T> used in a no_std environment.

Enums

Represents an owned, immutably borrowed, or mutably borrowed data.
Represents an owned or an immutably borrowed data.
Represents an owned or a mutably borrowed data.

Traits

Used to do a cheap conversion into Is<'a, T> in a generic context.
Used to do a cheap conversion into IsMut<'a, T> in a generic context.
Immutably borrows the primary borrow target as Is.
Mutably borrows the primary borrow target as Is.
ToOwned types that can be mutably borrowed from Owned.

Type Definitions

The owned type associated through BorrowAsIs and ToOwned.