pub struct Writer { /* private fields */ }
Expand description
Data structure for writing tokens
Implementations§
source§impl Writer
impl Writer
sourcepub fn write(
&mut self,
io_writer: &mut dyn Write,
interner: &CsNameInterner,
token: Token
) -> Result<(), Error>
pub fn write( &mut self, io_writer: &mut dyn Write, interner: &CsNameInterner, token: Token ) -> Result<(), Error>
Write a token.
pub fn add_newline(&mut self)
pub fn start_paragraph(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl UnwindSafe for Writer
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