[][src]Struct rs_alloc::string::String

#[repr(C)]pub struct String { /* fields omitted */ }

Implementations

impl String[src]

pub fn with_capacity(c: usize) -> Self[src]

pub fn new() -> Self[src]

pub fn from(s: &str) -> Self[src]

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

pub fn push(&mut self, u: u8)[src]

pub fn into_bytes(self) -> Vec<u8>[src]

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

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

pub fn as_mut_vec(&mut self) -> &mut Vec<u8>[src]

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

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

pub fn split(&self, pattern: &str) -> Split

Notable traits for Split

impl Iterator for Split type Item = String;
[src]

pub fn lines(&self) -> Lines

Notable traits for Lines

impl Iterator for Lines type Item = String;
[src]

pub fn from_raw_parts(ptr: *mut u8, len: usize, cap: usize) -> Self[src]

Trait Implementations

impl<'_> Append<&'_ String> for String[src]

impl Clone for String[src]

impl Display for String[src]

impl Eq for String[src]

impl Hash for String[src]

impl<'_> PartialEq<&'_ str> for String[src]

impl PartialEq<String> for String[src]

impl Write for String[src]

Auto Trait Implementations

impl !Send for String

impl !Sync for String

impl Unpin 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.