[][src]Struct swim_c::cstring::CString

pub struct CString<M = ()> { /* fields omitted */ }

A nul-terminated array of C chars allocated in a Hold.

Trait Implementations

impl<M: Sync> Sync for CString<M>[src]

impl<M: Send> Send for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopy<L, [u8], M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopy<L, str, M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentAsRef<L, CStr> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentAsRef<L, [u8]> for CString<M>[src]

impl<'b, L1, L2, M> ResidentStow<'b, L1, L2> for CString<M> where
    L1: Lease<Data = u8, Meta = BufHeader<M>>,
    L2: Lease<Data = u8, Meta = BufHeader<M>>,
    M: TryClone
[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentWithCapacity<L, M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentOrd<L> for CString<M>[src]

default fn resident_lt(lease: &L, other: &L) -> bool[src]

default fn resident_le(lease: &L, other: &L) -> bool[src]

default fn resident_ge(lease: &L, other: &L) -> bool[src]

default fn resident_gt(lease: &L, other: &L) -> bool[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromEmpty<L, M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentHash<L> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopyUnchecked<L, [u8], M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopyUnchecked<L, CStr, M> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentPartialEq<L, L> for CString<M>[src]

impl<M> Resident for CString<M>[src]

type Data = u8

The type of pointed-to data stored in leased memory blocks. The size of leased memory blocks must be a positive multiple of the Data size. Read more

type Meta = BufHeader<M>

The type of metadata stored with leased memory blocks. Meta data must contain sufficient information to resolve the size of any resided-in memory Lease. Read more

impl<'a, 'b, L: DynamicLease<'a, Data = u8, Meta = BufHeader<M>>, M> ResidentAddAssign<L, &'b str> for CString<M>[src]

impl<L1, L2, M> ResidentClone<L1, L2> for CString<M> where
    L1: Lease<Data = u8, Meta = BufHeader<M>>,
    L2: Lease<Data = u8, Meta = BufHeader<M>>,
    M: TryClone
[src]

impl<'a, 'b, L: DynamicLease<'a, Data = u8, Meta = BufHeader<M>>, M> ResidentAdd<L, &'b str> for CString<M>[src]

type Output = L

The resulting type of applying the + operator.

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentDerefMut<L> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentDebug<L> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentPartialOrd<L, L> for CString<M>[src]

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentDeref<L> for CString<M>[src]

type Target = CStringLease<L, M>

The type the resident dereferences to.

impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentEq<L> for CString<M>[src]

Blanket Implementations

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

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

impl<'b, S, T> StowFrom for T where
    S: Stow<'b, T>, 
[src]

default fn stow_from(value: T, hold: &dyn Hold<'b>) -> Self[src]

impl<'b, S, T> StowInto for S where
    T: StowFrom<'b, S>, 
[src]

default fn stow_into(self, hold: &dyn Hold<'b>) -> T[src]