pub struct WriteBuffer { /* private fields */ }
Available on crate feature
alloc
only.Expand description
A growable, nul-terminated UTF-8 buffer which implements fmt::Write
.
Any nul
s that are written to this are replaced with char::REPLACEMENT_CHARACTER
.
Allocation errors are exposed in fmt::write
s.
Implementations§
Source§impl WriteBuffer
impl WriteBuffer
Trait Implementations§
Source§impl AsRef<CStr> for WriteBuffer
impl AsRef<CStr> for WriteBuffer
Source§impl AsRef<str> for WriteBuffer
impl AsRef<str> for WriteBuffer
Source§impl Borrow<CStr> for WriteBuffer
impl Borrow<CStr> for WriteBuffer
Source§impl Borrow<str> for WriteBuffer
impl Borrow<str> for WriteBuffer
Source§impl Clone for WriteBuffer
impl Clone for WriteBuffer
Source§fn clone(&self) -> WriteBuffer
fn clone(&self) -> WriteBuffer
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for WriteBuffer
impl Debug for WriteBuffer
Source§impl Default for WriteBuffer
impl Default for WriteBuffer
Source§fn default() -> WriteBuffer
fn default() -> WriteBuffer
Returns the “default value” for a type. Read more
Source§impl Display for WriteBuffer
impl Display for WriteBuffer
Source§impl From<&str> for WriteBuffer
impl From<&str> for WriteBuffer
Source§impl From<WriteBuffer> for CString
May allocate
impl From<WriteBuffer> for CString
May allocate
Source§fn from(value: WriteBuffer) -> Self
fn from(value: WriteBuffer) -> Self
Converts to this type from the input type.
Source§impl From<WriteBuffer> for Cow<'static, CStr>
Does not allocate
impl From<WriteBuffer> for Cow<'static, CStr>
Does not allocate
Source§fn from(value: WriteBuffer) -> Self
fn from(value: WriteBuffer) -> Self
Converts to this type from the input type.
Source§impl From<WriteBuffer> for String
Does not allocate
impl From<WriteBuffer> for String
Does not allocate
Source§fn from(value: WriteBuffer) -> Self
fn from(value: WriteBuffer) -> Self
Converts to this type from the input type.
Source§impl FromStr for WriteBuffer
Will allocate
impl FromStr for WriteBuffer
Will allocate
Source§impl Hash for WriteBuffer
impl Hash for WriteBuffer
Source§impl Ord for WriteBuffer
impl Ord for WriteBuffer
Source§fn cmp(&self, other: &WriteBuffer) -> Ordering
fn cmp(&self, other: &WriteBuffer) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<CStr> for WriteBuffer
impl PartialEq<CStr> for WriteBuffer
Source§impl PartialEq<WriteBuffer> for CStr
impl PartialEq<WriteBuffer> for CStr
Source§impl PartialEq<WriteBuffer> for str
impl PartialEq<WriteBuffer> for str
Source§impl PartialEq<str> for WriteBuffer
impl PartialEq<str> for WriteBuffer
Source§impl PartialEq for WriteBuffer
impl PartialEq for WriteBuffer
Source§impl PartialOrd for WriteBuffer
impl PartialOrd for WriteBuffer
Source§impl TryFrom<CString> for WriteBuffer
Does not allocate
impl TryFrom<CString> for WriteBuffer
Does not allocate
Source§impl Write for WriteBuffer
impl Write for WriteBuffer
impl Eq for WriteBuffer
impl StructuralPartialEq for WriteBuffer
Auto Trait Implementations§
impl Freeze for WriteBuffer
impl RefUnwindSafe for WriteBuffer
impl Send for WriteBuffer
impl Sync for WriteBuffer
impl Unpin for WriteBuffer
impl UnwindSafe for WriteBuffer
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