[−][src]Struct genco::lang::go::Go
Language specialization for Go.
Trait Implementations
impl FormatInto<Go> for Import
[src]
fn format_into(self, tokens: &mut Tokens<Go>)
[src]
impl<'a> FormatInto<Go> for &'a Import
[src]
fn format_into(self, tokens: &mut Tokens<Go>)
[src]
impl Lang for Go
[src]
type Config = Config
Configuration associated with building a formatting element.
type Format = Format
State being used during formatting.
type Import = Import
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<Go> for Import
[src]
fn format(&self, out: &mut Formatter, _: &Config, _: &Format) -> Result
[src]
fn as_import(&self) -> Option<&Self>
[src]
fn __lang_item_as_any(&self) -> &dyn Any
[src]
fn __lang_item_clone(&self) -> Box<dyn LangItem<Go>>
[src]
fn __lang_item_eq(&self, other: &dyn LangItem<Go>) -> bool
[src]
impl Register<Go> for Import
[src]
impl<'a> Register<Go> for &'a Import
[src]
Auto Trait Implementations
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>,