pub struct FluentFormatter { /* private fields */ }
Implementations§
Source§impl FluentFormatter
impl FluentFormatter
pub fn get_buffer(&self) -> &str
pub fn swap_indent(&mut self, rhs: &mut String)
pub fn write_new_indent<T: PrettyPrint>( &mut self, body: &T, indent: &str, ) -> Result
pub fn write_with_indent(&mut self, line: &str)
pub fn write_new_line(&mut self)
pub fn tab(&self) -> String
pub fn clear(&mut self)
pub fn pretty_print(&mut self, text: impl PrettyPrint) -> Result<&str, Error>
Trait Implementations§
Source§impl Clone for FluentFormatter
impl Clone for FluentFormatter
Source§fn clone(&self) -> FluentFormatter
fn clone(&self) -> FluentFormatter
Returns a duplicate 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 FluentFormatter
impl Debug for FluentFormatter
Source§impl Default for FluentFormatter
impl Default for FluentFormatter
Auto Trait Implementations§
impl Freeze for FluentFormatter
impl RefUnwindSafe for FluentFormatter
impl Send for FluentFormatter
impl Sync for FluentFormatter
impl Unpin for FluentFormatter
impl UnwindSafe for FluentFormatter
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