[][src]Struct aliasable::string::AliasableString

pub struct AliasableString(_);

A basic aliasable (non core::ptr::Unique) alternative to alloc::string::String.

Implementations

impl AliasableString[src]

pub fn into_bytes(self) -> AliasableVec<u8>[src]

Consumes self into an AliasableVec of UTF-8 bytes.

pub fn from_unique(s: UniqueString) -> Self[src]

Construct an AliasableString from a UniqueString.

pub fn into_unique(s: AliasableString) -> UniqueString[src]

Consumes self and converts it into a non-aliasable UniqueString.

pub fn into_unique_pin(pin: Pin<AliasableString>) -> Pin<UniqueString>[src]

Convert a pinned AliasableString to a core::ptr::Unique backed pinned UniqueString.

pub fn from_unique_pin(pin: Pin<UniqueString>) -> Pin<AliasableString>[src]

Convert a pinned core::ptr::Unique backed UniqueString to a pinned AliasableString.

Trait Implementations

impl AsMut<str> for AliasableString[src]

impl AsRef<str> for AliasableString[src]

impl Debug for AliasableString[src]

impl Deref for AliasableString[src]

type Target = str

The resulting type after dereferencing.

impl DerefMut for AliasableString[src]

impl From<AliasableString> for UniqueString[src]

impl From<String> for AliasableString[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.