[][src]Struct safer_ffi::String

#[repr(transparent)]pub struct String(_);

Same as String, but with guaranteed #[repr(C)] layout

C Layout

Implementations

impl String[src]

pub const EMPTY: Self[src]

pub fn with_rust_mut<R>(
    self: &mut String,
    f: impl FnOnce(&mut String) -> R
) -> R
[src]

Trait Implementations

impl Debug for String[src]

impl Deref for String[src]

type Target = str

The resulting type after dereferencing.

impl From<String> for String[src]

impl Into<String> for String[src]

impl ReprC for String where
    Vec<u8>: ReprC
[src]

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

The CType having the same layout as Self.

Auto Trait Implementations

impl RefUnwindSafe for String

impl Send for String

impl Sync for String

impl Unpin for String

impl UnwindSafe for String

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.