[−][src]Struct genco::lang::python::Python
Language specialization for Python.
Trait Implementations
impl FormatInto<Python> for Import
[src]
fn format_into(self, tokens: &mut Tokens<Python>)
[src]
impl<'a> FormatInto<Python> for &'a Import
[src]
fn format_into(self, tokens: &mut Tokens<Python>)
[src]
impl FormatInto<Python> for ImportModule
[src]
fn format_into(self, tokens: &mut Tokens<Python>)
[src]
impl<'a> FormatInto<Python> for &'a ImportModule
[src]
fn format_into(self, tokens: &mut Tokens<Python>)
[src]
impl Lang for Python
[src]
type Config = Config
Configuration associated with building a formatting element.
type Format = Format
State being used during formatting.
type Import = dyn AsAny
The type used when resolving imports.
fn write_quoted(out: &mut Formatter, input: &str) -> Result
[src]
fn format_file(
tokens: &Tokens,
out: &mut Formatter,
config: &Self::Config
) -> Result
[src]
tokens: &Tokens,
out: &mut Formatter,
config: &Self::Config
) -> Result
fn default_indentation() -> Indentation
[src]
fn open_quote(
out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool
) -> Result
[src]
out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool
) -> Result
fn close_quote(
out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool
) -> Result
[src]
out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format,
_has_eval: bool
) -> Result
fn string_eval_literal(
out: &mut Formatter,
config: &Self::Config,
format: &Self::Format,
literal: &str
) -> Result
[src]
out: &mut Formatter,
config: &Self::Config,
format: &Self::Format,
literal: &str
) -> Result
fn start_string_eval(
_out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format
) -> Result
[src]
_out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format
) -> Result
fn end_string_eval(
_out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format
) -> Result
[src]
_out: &mut Formatter,
_config: &Self::Config,
_format: &Self::Format
) -> Result
impl LangItem<Python> for Import
[src]
fn format(&self, out: &mut Formatter, _: &Config, _: &Format) -> Result
[src]
fn as_import(&self) -> Option<&dyn AsAny>
[src]
fn __lang_item_as_any(&self) -> &dyn Any
[src]
fn __lang_item_clone(&self) -> Box<dyn LangItem<Python>>
[src]
fn __lang_item_eq(&self, other: &dyn LangItem<Python>) -> bool
[src]
impl LangItem<Python> for ImportModule
[src]
fn format(&self, out: &mut Formatter, _: &Config, _: &Format) -> Result
[src]
fn as_import(&self) -> Option<&dyn AsAny>
[src]
fn __lang_item_as_any(&self) -> &dyn Any
[src]
fn __lang_item_clone(&self) -> Box<dyn LangItem<Python>>
[src]
fn __lang_item_eq(&self, other: &dyn LangItem<Python>) -> bool
[src]
impl Register<Python> for Import
[src]
impl<'a> Register<Python> for &'a Import
[src]
impl Register<Python> for ImportModule
[src]
impl<'a> Register<Python> for &'a ImportModule
[src]
Auto Trait Implementations
impl RefUnwindSafe for Python
impl Send for Python
impl Sync for Python
impl Unpin for Python
impl UnwindSafe for Python
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,