pub struct StringWriter { /* private fields */ }Implementations§
Source§impl StringWriter
impl StringWriter
pub fn write_string_view(&mut self, s: &str)
Source§impl StringWriter
impl StringWriter
pub fn write_c_char(&mut self, c: char)
Trait Implementations§
Source§impl Clone for StringWriter
impl Clone for StringWriter
Source§fn clone(&self) -> StringWriter
fn clone(&self) -> StringWriter
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StringWriter
impl Debug for StringWriter
Source§impl Writer for StringWriter
impl Writer for StringWriter
fn advance(&mut self, new_pos: &Position)
fn maybe_space(&mut self, new_pos: &Position, reserve: i32)
fn newline(&mut self)
fn space(&mut self)
fn write_multiline(&mut self, s: &str)
fn write(&mut self, s: &str)
fn identifier(&mut self, s: &str)
fn keyword(&mut self, s: &str)
fn symbol(&mut self, s: &str)
fn literal(&mut self, s: &str)
fn string(&mut self, s: &str)
fn source_string(&mut self, s: &str, quote_style: QuoteStyle, block_depth: u32)
Auto Trait Implementations§
impl Freeze for StringWriter
impl RefUnwindSafe for StringWriter
impl Send for StringWriter
impl Sync for StringWriter
impl Unpin for StringWriter
impl UnsafeUnpin for StringWriter
impl UnwindSafe for StringWriter
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