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§

StringStub
A stub for String used in no_std environments.
VecStub
A stub for Vec<T> used in no_std environments.

Enums§

Is
Represents an owned, immutably borrowed, or mutably borrowed data.
IsCow
Represents an owned or an immutably borrowed data.
IsMut
Represents an owned or a mutably borrowed data.

Traits§

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

Type Aliases§

Owned
The owned type associated through BorrowAsIs and ToOwned.