pub struct Emitter<'state> { /* private fields */ }Implementations§
Source§impl<'state> Emitter<'state>
impl<'state> Emitter<'state>
pub fn new( s: String, label_map: &'state FxHashMap<Box<str>, Box<str>>, css_classes: &'state CssClassNames, indentation: Indentation, ) -> Self
pub fn emit(&mut self, node: &Node<'_>, base_indent: usize) -> Result
pub fn into_string(self) -> String
pub fn warnings(&self) -> Warnings
Trait Implementations§
Auto Trait Implementations§
impl<'state> Freeze for Emitter<'state>
impl<'state> RefUnwindSafe for Emitter<'state>
impl<'state> Send for Emitter<'state>
impl<'state> Sync for Emitter<'state>
impl<'state> Unpin for Emitter<'state>
impl<'state> UnsafeUnpin for Emitter<'state>
impl<'state> UnwindSafe for Emitter<'state>
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