[−][src]Struct swim_c::cstring::CString
A nul-terminated array of C char
s 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]
fn new_resident_layout(data: &[u8], _meta: &M) -> Layout
[src]
fn new_resident_ptr(raw: *mut u8, _data: &[u8], _meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, data: &[u8], meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopy<L, str, M> for CString<M>
[src]
fn new_resident_layout(data: &str, meta: &M) -> Layout
[src]
fn new_resident_ptr(raw: *mut u8, data: &str, meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, data: &str, meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentAsRef<L, CStr> for CString<M>
[src]
fn resident_as_ref(lease: &L) -> &CStr
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentAsRef<L, [u8]> for CString<M>
[src]
fn resident_as_ref(lease: &L) -> &[u8]
[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]
L1: Lease<Data = u8, Meta = BufHeader<M>>,
L2: Lease<Data = u8, Meta = BufHeader<M>>,
M: TryClone,
fn new_resident_layout(lease: &L1) -> Layout
[src]
unsafe fn resident_stow(
src: &mut L1,
dst: &mut L2,
_hold: &dyn Hold<'b>
) -> Result<(), HoldError>
[src]
src: &mut L1,
dst: &mut L2,
_hold: &dyn Hold<'b>
) -> Result<(), HoldError>
unsafe fn resident_unstow(_src: &mut L1, _dst: &mut L2)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentWithCapacity<L, M> for CString<M>
[src]
fn new_resident_layout(cap: usize, _meta: &M) -> Result<Layout, LayoutError>
[src]
fn new_resident_ptr(raw: *mut u8, _cap: usize, _meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, cap: usize, meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentOrd<L> for CString<M>
[src]
fn resident_cmp(lease: &L, other: &L) -> Ordering
[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]
fn new_resident_layout(_meta: &M) -> Layout
[src]
fn new_resident_ptr(raw: *mut u8, _meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentHash<L> for CString<M>
[src]
fn resident_hash<H: Hasher>(lease: &L, state: &mut H)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopyUnchecked<L, [u8], M> for CString<M>
[src]
fn new_resident_layout(data: &[u8], _meta: &M) -> Layout
[src]
fn new_resident_ptr(raw: *mut u8, _data: &[u8], _meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, data: &[u8], meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentFromCopyUnchecked<L, CStr, M> for CString<M>
[src]
fn new_resident_layout(data: &CStr, meta: &M) -> Layout
[src]
fn new_resident_ptr(raw: *mut u8, data: &CStr, meta: &M) -> *mut u8
[src]
fn new_resident(lease: &mut L, data: &CStr, meta: M)
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentPartialEq<L, L> for CString<M>
[src]
fn resident_eq(lease: &L, other: &L) -> bool
[src]
fn resident_ne(lease: &L, other: &L) -> bool
[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
unsafe fn resident_size(_data: *mut u8, meta: *mut BufHeader<M>) -> usize
[src]
unsafe fn resident_drop(_data: *mut u8, _meta: *mut BufHeader<M>)
[src]
impl<'a, 'b, L: DynamicLease<'a, Data = u8, Meta = BufHeader<M>>, M> ResidentAddAssign<L, &'b str> for CString<M>
[src]
fn resident_add_assign(lease: &mut L, rhs: &'b str)
[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]
L1: Lease<Data = u8, Meta = BufHeader<M>>,
L2: Lease<Data = u8, Meta = BufHeader<M>>,
M: TryClone,
fn new_resident_layout(lease: &L1) -> Layout
[src]
fn resident_clone(src: &L1, dst: &mut L2) -> Result<(), HoldError>
[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.
fn resident_add(lease: L, rhs: &'b str) -> L
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentDerefMut<L> for CString<M>
[src]
fn resident_deref_mut(lease: &mut L) -> &mut CStringLease<L, M>
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentDebug<L> for CString<M>
[src]
fn resident_fmt(lease: &L, f: &mut Formatter) -> Result
[src]
impl<L: Lease<Data = u8, Meta = BufHeader<M>>, M> ResidentPartialOrd<L, L> for CString<M>
[src]
fn resident_partial_cmp(lease: &L, other: &L) -> Option<Ordering>
[src]
fn resident_lt(lease: &L, other: &L) -> bool
[src]
fn resident_le(lease: &L, other: &L) -> bool
[src]
fn resident_ge(lease: &L, other: &L) -> bool
[src]
fn resident_gt(lease: &L, other: &L) -> bool
[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.
fn resident_deref(lease: &L) -> &CStringLease<L, M>
[src]
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]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<'b, S, T> StowFrom for T where
S: Stow<'b, T>,
[src]
S: Stow<'b, T>,
default fn try_stow_from(
src: S,
hold: &dyn Hold<'b>
) -> Result<T, (S, HoldError)>
[src]
src: S,
hold: &dyn Hold<'b>
) -> Result<T, (S, HoldError)>
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]
T: StowFrom<'b, S>,