pub struct AllocString { /* private fields */ }Expand description
Minimal string type
This type exists to make sure there are no surprises during the format operation
Implementations§
Source§impl AllocString
impl AllocString
Sourcepub fn new() -> AllocString
pub fn new() -> AllocString
Creates a new AllocString
Sourcepub fn with_capacity(capacity: usize) -> AllocString
pub fn with_capacity(capacity: usize) -> AllocString
Creates a new AllocString with a specified capacity
Sourcepub fn into_string(self) -> AzUtilResult<String>
pub fn into_string(self) -> AzUtilResult<String>
Converts the AllocString into an String type
Sourcepub fn push_str(&mut self, s: &str) -> AzUtilResult<()>
pub fn push_str(&mut self, s: &str) -> AzUtilResult<()>
Extend the current AllocString with an additional &str
Trait Implementations§
Source§impl WriteBuffer for AllocString
impl WriteBuffer for AllocString
Auto Trait Implementations§
impl Freeze for AllocString
impl RefUnwindSafe for AllocString
impl Send for AllocString
impl Sync for AllocString
impl Unpin for AllocString
impl UnsafeUnpin for AllocString
impl UnwindSafe for AllocString
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