[−][src]Trait genco::Custom
Trait that must be implemented by custom elements.
Associated Types
Loading content...Provided methods
fn format(
&self,
_out: &mut Formatter,
_config: &mut Self::Config,
_level: usize
) -> Result
&self,
_out: &mut Formatter,
_config: &mut Self::Config,
_level: usize
) -> Result
Format the custom element.
fn quote_string(out: &mut Formatter, input: &str) -> Result
Performing quoting according to convention set by custom element.
fn write_file<'el>(
tokens: Tokens<'el, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
tokens: Tokens<'el, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
Write a file according to convention by custom element.
Implementations on Foreign Types
impl Custom for ()
[src]
Dummy implementation for unit.
Implementors
impl<'el> Custom for Csharp<'el>
[src]
type Config = Config<'el>
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for Dart<'el>
[src]
type Config = Config
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for Go<'el>
[src]
type Config = Config
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for Java<'el>
[src]
type Config = Config<'el>
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for Swift<'el>
[src]
type Config = ()
fn format(
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for JavaScript<'el>
[src]
type Config = ()
fn format(
&self,
out: &mut Formatter,
_extra: &mut Self::Config,
_level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
_extra: &mut Self::Config,
_level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
impl<'el> Custom for Python<'el>
[src]
type Config = ()
fn format(
&self,
out: &mut Formatter,
_extra: &mut Self::Config,
_level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
_extra: &mut Self::Config,
_level: usize
) -> Result
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
config: &mut Self::Config,
level: usize
) -> Result