pub struct String(_);
Expand description
Guarded string type
Implementations§
source§impl String
impl String
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn capacity(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn reserve(&mut self, capacity: usize)
pub fn reserve_exact(&mut self, capacity: usize)
pub fn borrow(&self) -> Ref<'_>
pub fn borrow_mut(&mut self) -> RefMut<'_>
Trait Implementations§
Auto Trait Implementations§
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