[][src]Struct safer_ffi::string::str_ref

#[repr(transparent)]pub struct str_ref<'lt>(_);

&'lt str, but with a guaranteed #[repr(C)] layout.

C Layout

Implementations

impl<'lt> str_ref<'lt>[src]

pub fn as_str(self: str_ref<'lt>) -> &'lt str[src]

Trait Implementations

impl<'_> AsRef<str> for str_ref<'_>[src]

impl<'lt> Clone for str_ref<'lt>[src]

impl<'lt> Copy for str_ref<'lt>[src]

impl<'_> Debug for str_ref<'_>[src]

impl<'lt> Deref for str_ref<'lt>[src]

type Target = str

The resulting type after dereferencing.

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

impl<'lt> ReprC for str_ref<'lt> where
    slice_ref<'lt, u8>: ReprC
[src]

type CLayout = <slice_ref<'lt, u8> as ReprC>::CLayout

The CType having the same layout as Self.

Auto Trait Implementations

impl<'lt> RefUnwindSafe for str_ref<'lt>

impl<'lt> Send for str_ref<'lt>

impl<'lt> Sync for str_ref<'lt>

impl<'lt> Unpin for str_ref<'lt>

impl<'lt> UnwindSafe for str_ref<'lt>

Blanket Implementations

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

impl<T> AsOut<T> for T where
    T: Copy

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.