pub enum Language {
Rust,
Isle,
}
Expand description
Identify the source code language a Formatter
will emit.
Variants§
Implementations§
Source§impl Language
impl Language
Sourcepub fn should_append_location(&self, line: &str) -> bool
pub fn should_append_location(&self, line: &str) -> bool
Determine if a FileLocation
comment should be appended to a line.
Sourcepub fn comment_token(&self) -> &'static str
pub fn comment_token(&self) -> &'static str
Get the comment token for the language.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Language
impl RefUnwindSafe for Language
impl Send for Language
impl Sync for Language
impl Unpin for Language
impl UnwindSafe for Language
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