[][src]Struct swim_mem::resident::StringLease

pub struct StringLease<L: Lease<Data = u8, Meta = BufHeader<M>>, M = ()> { /* fields omitted */ }

Methods

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

pub fn is_empty(&self) -> bool[src]

pub fn len(&self) -> usize[src]

pub unsafe fn set_len(&mut self, new_len: usize)[src]

pub fn cap(&self) -> usize[src]

pub fn meta(&self) -> &M[src]

pub fn meta_mut(&mut self) -> &mut M[src]

pub fn as_ptr(&self) -> *const u8[src]

pub fn as_mut_ptr(&mut self) -> *mut u8[src]

pub fn as_slice(&self) -> &[u8][src]

pub fn as_str(&self) -> &str[src]

pub fn as_mut_str(&mut self) -> &mut str[src]

pub fn pop(&mut self) -> Option<char>[src]

pub fn remove(&mut self, index: usize) -> char[src]

pub fn clear(&mut self)[src]

impl<'a, L: DynamicLease<'a, Data = u8, Meta = BufHeader<M>>, M> StringLease<L, M>[src]

pub fn try_reserve(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn reserve(&mut self, ext: usize)[src]

pub fn try_reserve_exact(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn reserve_exact(&mut self, ext: usize)[src]

pub fn try_reserve_in_place(&mut self, ext: usize) -> Result<(), HoldError>[src]

pub fn try_reserve_in_place_exact(
    &mut self,
    ext: usize
) -> Result<(), HoldError>
[src]

pub fn try_push(&mut self, c: char) -> Result<(), HoldError>[src]

pub fn push(&mut self, c: char)[src]

pub fn try_push_str(&mut self, s: &str) -> Result<(), HoldError>[src]

pub fn push_str(&mut self, s: &str)[src]

pub fn try_insert(&mut self, index: usize, c: char) -> Result<(), HoldError>[src]

pub fn insert(&mut self, index: usize, c: char)[src]

pub fn try_insert_str(&mut self, index: usize, s: &str) -> Result<(), HoldError>[src]

pub fn insert_str(&mut self, index: usize, s: &str)[src]

pub unsafe fn try_insert_slice(
    &mut self,
    index: usize,
    slice: &[u8]
) -> Result<(), HoldError>
[src]

pub unsafe fn insert_slice(&mut self, index: usize, slice: &[u8])[src]

Trait Implementations

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

type Target = str

The resulting type after dereferencing.

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

impl<'a, L: DynamicLease<'a, Data = u8, Meta = BufHeader<M>>, M> Write for StringLease<L, M>[src]

default fn write_fmt(&mut self, args: Arguments) -> Result<(), Error>
1.0.0
[src]

Glue for usage of the [write!] macro with implementors of this trait. Read more

Auto Trait Implementations

impl<L, M> Send for StringLease<L, M> where
    L: Send

impl<L, M> Sync for StringLease<L, M> where
    L: Sync

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]