Enum genco::js::JavaScript
[−]
[src]
pub enum JavaScript<'el> { ImportedAlias { module: Cow<'el, str>, name: Cow<'el, str>, alias: Cow<'el, str>, }, }
JavaScript token specialization.
Variants
ImportedAlias
An imported module as an alias.
Fields of ImportedAlias
module: Cow<'el, str> | Module of the imported name. |
name: Cow<'el, str> | Name imported. |
alias: Cow<'el, str> | Alias of module. |
Trait Implementations
impl<'el> Debug for JavaScript<'el>
[src]
impl<'el> Clone for JavaScript<'el>
[src]
fn clone(&self) -> JavaScript<'el>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'el> Custom for JavaScript<'el>
[src]
type Extra = ()
Extra data associated with building a formatting element.
fn format(
&self,
out: &mut Formatter,
_extra: &mut Self::Extra,
_level: usize
) -> Result
[src]
&self,
out: &mut Formatter,
_extra: &mut Self::Extra,
_level: usize
) -> Result
Format the custom element.
fn quote_string(out: &mut Formatter, input: &str) -> Result
[src]
Performing quoting according to convention set by custom element.
fn write_file<'a>(
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
[src]
tokens: Tokens<'a, Self>,
out: &mut Formatter,
extra: &mut Self::Extra,
level: usize
) -> Result
Write a file according to convention by custom element.