#[repr(C)]pub struct String { /* private fields */ }
Implementations§
Source§impl String
impl String
pub fn with_capacity(c: usize) -> Self
pub fn new() -> Self
pub fn from(s: &str) -> Self
pub fn as_str(&self) -> &str
pub fn push(&mut self, u: u8)
pub fn into_bytes(self) -> Vec<u8>
pub fn as_bytes(&self) -> &[u8]
pub fn as_bytes_mut(&mut self) -> &mut [u8]
pub fn as_mut_vec(&mut self) -> &mut Vec<u8>
pub fn push_str(&mut self, s: &str)
pub fn len(&self) -> usize
pub fn split(&self, pattern: &str) -> Split ⓘ
pub fn lines(&self) -> Lines ⓘ
pub fn from_raw_parts(ptr: *mut u8, len: usize, cap: usize) -> Self
Trait Implementations§
Source§impl Write for String
impl Write for String
impl Eq for String
Auto Trait Implementations§
impl Freeze for String
impl RefUnwindSafe for String
impl !Send for String
impl !Sync for String
impl Unpin for String
impl UnwindSafe for String
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more