pub struct JavaScript(/* private fields */);
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 for JavaScript
impl PartialEq for JavaScript
Source§impl PartialOrd for JavaScript
impl PartialOrd for JavaScript
Source§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.
impl Copy for JavaScript
impl Eq for JavaScript
impl LangSupportsEval for JavaScript
impl StructuralPartialEq for JavaScript
Auto Trait Implementations§
impl Freeze for JavaScript
impl RefUnwindSafe for JavaScript
impl Send for JavaScript
impl Sync for JavaScript
impl Unpin for JavaScript
impl UnwindSafe for JavaScript
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more