Struct oxygengine_core::utils::StringBuffer
source · [−]Fields
indent: usize
resize: usize
Implementations
sourceimpl StringBuffer
impl StringBuffer
pub fn push_level(&mut self)
pub fn pop_level(&mut self)
pub fn level(&self) -> usize
pub fn write_indent(&mut self) -> Result<()>
pub fn write_indented_lines<S>(&mut self, s: S) -> Result<()>where
S: AsRef<str>,
pub fn write_str<S>(&mut self, s: S) -> Result<()>where
S: AsRef<str>,
pub fn write_new_line(&mut self) -> Result<()>
pub fn write_space(&mut self) -> Result<()>
Trait Implementations
sourceimpl Clone for StringBuffer
impl Clone for StringBuffer
sourcefn clone(&self) -> StringBufferⓘNotable traits for StringBufferimpl Write for StringBuffer
fn clone(&self) -> StringBufferⓘNotable traits for StringBufferimpl Write for StringBuffer
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for StringBuffer
impl Default for StringBuffer
sourceimpl From<StringBuffer> for Result<String>
impl From<StringBuffer> for Result<String>
sourcefn from(buffer: StringBuffer) -> Self
fn from(buffer: StringBuffer) -> Self
Converts to this type from the input type.
sourceimpl Write for StringBuffer
impl Write for StringBuffer
sourcefn flush(&mut self) -> Result<()>
fn flush(&mut self) -> Result<()>
Flush this output stream, ensuring that all intermediately buffered
contents reach their destination. Read more
sourcefn write(&mut self, buf: &[u8]) -> Result<usize>
fn write(&mut self, buf: &[u8]) -> Result<usize>
Write a buffer into this writer, returning how many bytes were written. Read more
sourcefn is_write_vectored(&self) -> bool
fn is_write_vectored(&self) -> bool
🔬This is a nightly-only experimental API. (
can_vector
)1.0.0 · sourcefn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>
Attempts to write an entire buffer into this writer. Read more
sourcefn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
fn write_all_vectored(&mut self, bufs: &mut [IoSlice<'_>]) -> Result<(), Error>
🔬This is a nightly-only experimental API. (
write_all_vectored
)Attempts to write multiple buffers into this writer. Read more
Auto Trait Implementations
impl RefUnwindSafe for StringBuffer
impl Send for StringBuffer
impl Sync for StringBuffer
impl Unpin for StringBuffer
impl UnwindSafe for StringBuffer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more