Struct fluent_fmt::FluentFormatter[][src]

pub struct FluentFormatter { /* fields omitted */ }

Implementations

impl FluentFormatter[src]

pub fn get_buffer(&self) -> &str[src]

pub fn swap_indent(&mut self, rhs: &mut String)[src]

pub fn write_new_indent<T: PrettyPrint>(
    &mut self,
    body: &T,
    indent: &str
) -> Result
[src]

pub fn write_with_indent(&mut self, line: &str)[src]

pub fn write_new_line(&mut self)[src]

pub fn tab(&self) -> String[src]

pub fn clear(&mut self)[src]

pub fn pretty_print(&mut self, text: impl PrettyPrint) -> Result<&str, Error>[src]

Trait Implementations

impl Clone for FluentFormatter[src]

impl Debug for FluentFormatter[src]

impl Default for FluentFormatter[src]

impl Write for FluentFormatter[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.