pub struct Python(/* private fields */);Expand description
Language specialization for Python.
Trait Implementations§
source§impl<'a> FormatInto<Python> for &'a Import
impl<'a> FormatInto<Python> for &'a Import
source§impl<'a> FormatInto<Python> for &'a ImportModule
impl<'a> FormatInto<Python> for &'a ImportModule
source§impl FormatInto<Python> for Import
impl FormatInto<Python> for Import
source§impl FormatInto<Python> for ImportModule
impl FormatInto<Python> for ImportModule
source§impl Lang for Python
impl Lang for Python
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<Python>,
out: &mut Formatter<'_>,
config: &<Python as Lang>::Config,
) -> Result<(), Error>
fn format_file( tokens: &Tokens<Python>, out: &mut Formatter<'_>, config: &<Python 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 LangItem<Python> for ImportModule
impl LangItem<Python> for ImportModule
source§impl Ord for Python
impl Ord for Python
source§impl PartialOrd for Python
impl PartialOrd for Python
source§impl<'a> Register<Python> for &'a ImportModule
impl<'a> Register<Python> for &'a ImportModule
source§impl Register<Python> for ImportModule
impl Register<Python> for ImportModule
impl Copy for Python
impl Eq for Python
impl StructuralPartialEq for Python
Auto Trait Implementations§
impl Freeze for Python
impl RefUnwindSafe for Python
impl Send for Python
impl Sync for Python
impl Unpin for Python
impl UnwindSafe for Python
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)