[−][src]Struct aliasable::string::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]
impl DerefMut for AliasableString
[src]
impl From<AliasableString> for UniqueString
[src]
pub fn from(s: AliasableString) -> Self
[src]
impl From<String> for AliasableString
[src]
pub fn from(s: UniqueString) -> Self
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,