pub struct Rust(/* private fields */);Expand description
Language specialization for Rust.
Trait Implementations§
Source§impl<'a> FormatInto<Rust> for &'a Import
impl<'a> FormatInto<Rust> for &'a Import
Source§impl FormatInto<Rust> for Import
impl FormatInto<Rust> for Import
Source§impl Lang for Rust
impl Lang for Rust
Source§fn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result<(), Error>
fn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result<(), Error>
Performing string quoting according to language convention.
Source§fn format_file(
tokens: &Tokens<Rust>,
out: &mut Formatter<'_>,
config: &<Rust as Lang>::Config,
) -> Result<(), Error>
fn format_file( tokens: &Tokens<Rust>, out: &mut Formatter<'_>, config: &<Rust as Lang>::Config, ) -> Result<(), Error>
Write a file according to the specified language convention.
Source§fn default_indentation() -> Indentation
fn default_indentation() -> Indentation
Provide the default indentation.
Source§fn open_quote(
out: &mut Formatter<'_>,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool,
) -> Result<(), Error>
fn open_quote( out: &mut Formatter<'_>, _config: &Self::Config, _format: &Self::Format, _has_eval: bool, ) -> Result<(), Error>
Start a string quote.
Source§fn close_quote(
out: &mut Formatter<'_>,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool,
) -> Result<(), Error>
fn close_quote( out: &mut Formatter<'_>, _config: &Self::Config, _format: &Self::Format, _has_eval: bool, ) -> Result<(), Error>
End a string quote.
Source§fn string_eval_literal(
out: &mut Formatter<'_>,
config: &Self::Config,
format: &Self::Format,
literal: &str,
) -> Result<(), Error>
fn string_eval_literal( out: &mut Formatter<'_>, config: &Self::Config, format: &Self::Format, literal: &str, ) -> Result<(), Error>
A simple, single-literal string evaluation.
Source§impl Ord for Rust
impl Ord for Rust
Source§impl PartialOrd for Rust
impl PartialOrd for Rust
impl Copy for Rust
impl Eq for Rust
impl StructuralPartialEq for Rust
Auto Trait Implementations§
impl Freeze for Rust
impl RefUnwindSafe for Rust
impl Send for Rust
impl Sync for Rust
impl Unpin for Rust
impl UnwindSafe for Rust
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