[][src]Struct safer_ffi::string::str_boxed

#[repr(transparent)]pub struct str_boxed(_);
This is supported on feature="alloc" only.

Same as Box<str>, but with a guaranteed #[repr(C)] layout.

C Layout

Implementations

impl str_boxed[src]

pub fn as_ref(self: &str_boxed) -> str_ref[src]

This is supported on feature="alloc" only.

Trait Implementations

impl AsRef<str> for str_boxed[src]

impl Debug for str_boxed[src]

impl Deref for str_boxed[src]

type Target = str

The resulting type after dereferencing.

impl<'lt> From<&'lt str> for str_boxed[src]

impl From<Box<str>> for str_boxed[src]

impl From<String> for str_boxed[src]

impl Into<Box<str>> for str_boxed[src]

impl Into<String> for str_boxed[src]

impl ReprC for str_boxed where
    slice_boxed<u8>: ReprC
[src]

type CLayout = <slice_boxed<u8> as ReprC>::CLayout

The CType having the same layout as Self.

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> ManuallyDropMut for T

type Ret = ManuallyDrop<T>

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.