pub struct Formatter { /* private fields */ }Implementations§
Source§impl Formatter
impl Formatter
pub fn new(config: Config, source_files: Vec<String>) -> Self
pub fn config(&self) -> &Config
pub fn create_from_config( config_path: Option<&str>, source_files: Vec<String>, ) -> Result<Formatter, String>
pub fn format(&self) -> Vec<Result<String, String>>
pub fn format_one(source_code: &str, config: Config) -> String
pub fn parse(source_code: &str) -> Tree
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Formatter
impl RefUnwindSafe for Formatter
impl Send for Formatter
impl Sync for Formatter
impl Unpin for Formatter
impl UnwindSafe for Formatter
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