Struct genco::lang::js::JavaScript
source · pub struct JavaScript(_);
Expand description
JavaScript language specialization.
Trait Implementations§
source§impl Clone for JavaScript
impl Clone for JavaScript
source§fn clone(&self) -> JavaScript
fn clone(&self) -> JavaScript
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for JavaScript
impl Debug for JavaScript
source§impl<'a> FormatInto<JavaScript> for &'a Import
impl<'a> FormatInto<JavaScript> for &'a Import
source§fn format_into(self, tokens: &mut Tokens<JavaScript>)
fn format_into(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens in-place. Read more
source§impl FormatInto<JavaScript> for Import
impl FormatInto<JavaScript> for Import
source§fn format_into(self, tokens: &mut Tokens<JavaScript>)
fn format_into(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens in-place. Read more
source§impl Hash for JavaScript
impl Hash for JavaScript
source§impl Lang for JavaScript
impl Lang for JavaScript
source§fn open_quote(
out: &mut Formatter<'_>,
_config: &Self::Config,
_format: &Self::Format,
has_eval: bool
) -> Result
fn open_quote( out: &mut Formatter<'_>, _config: &Self::Config, _format: &Self::Format, has_eval: bool ) -> Result
Start a string quote.
source§fn close_quote(
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
End a string quote.
source§fn start_string_eval(
out: &mut Formatter<'_>,
_config: &Self::Config,
_format: &Self::Format
) -> Result
fn start_string_eval( out: &mut Formatter<'_>, _config: &Self::Config, _format: &Self::Format ) -> Result
Start a string-interpolated eval.
source§fn end_string_eval(
out: &mut Formatter<'_>,
_config: &Self::Config,
_format: &Self::Format
) -> Result
fn end_string_eval( out: &mut Formatter<'_>, _config: &Self::Config, _format: &Self::Format ) -> Result
End a string interpolated eval.
source§fn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result
fn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result
Performing string quoting according to language convention.
source§fn format_file(
tokens: &Tokens,
out: &mut Formatter<'_>,
config: &Self::Config
) -> Result
fn format_file( tokens: &Tokens, out: &mut Formatter<'_>, config: &Self::Config ) -> Result
Write a file according to the specified language convention.
source§fn default_indentation() -> Indentation
fn default_indentation() -> Indentation
Provide the default indentation.
source§impl LangItem<JavaScript> for Any
impl LangItem<JavaScript> for Any
source§impl LangItem<JavaScript> for Import
impl LangItem<JavaScript> for Import
source§impl Ord for JavaScript
impl Ord for JavaScript
source§fn cmp(&self, other: &JavaScript) -> Ordering
fn cmp(&self, other: &JavaScript) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<JavaScript> for JavaScript
impl PartialEq<JavaScript> for JavaScript
source§fn eq(&self, other: &JavaScript) -> bool
fn eq(&self, other: &JavaScript) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<JavaScript> for JavaScript
impl PartialOrd<JavaScript> for JavaScript
source§fn partial_cmp(&self, other: &JavaScript) -> Option<Ordering>
fn partial_cmp(&self, other: &JavaScript) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<'a> Register<JavaScript> for &'a Import
impl<'a> Register<JavaScript> for &'a Import
source§fn register(self, tokens: &mut Tokens<JavaScript>)
fn register(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens.
source§impl Register<JavaScript> for Import
impl Register<JavaScript> for Import
source§fn register(self, tokens: &mut Tokens<JavaScript>)
fn register(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens.