pub struct JavaScript(_);
Expand description
JavaScript language specialization.
Trait Implementations
sourceimpl Clone for JavaScript
impl Clone for JavaScript
sourcefn clone(&self) -> JavaScript
fn clone(&self) -> JavaScript
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for JavaScript
impl Debug for JavaScript
sourceimpl<'a> FormatInto<JavaScript> for &'a Import
impl<'a> FormatInto<JavaScript> for &'a Import
sourcefn format_into(self, tokens: &mut Tokens<JavaScript>)
fn format_into(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens in-place. Read more
sourceimpl FormatInto<JavaScript> for Import
impl FormatInto<JavaScript> for Import
sourcefn format_into(self, tokens: &mut Tokens<JavaScript>)
fn format_into(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens in-place. Read more
sourceimpl Hash for JavaScript
impl Hash for JavaScript
sourceimpl Lang for JavaScript
impl Lang for JavaScript
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn 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.
sourcefn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result
fn write_quoted(out: &mut Formatter<'_>, input: &str) -> Result
Performing string quoting according to language convention.
sourcefn 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.
sourcefn default_indentation() -> Indentation
fn default_indentation() -> Indentation
Provide the default indentation.
sourceimpl LangItem<JavaScript> for Any
impl LangItem<JavaScript> for Any
sourcefn format(
&self,
out: &mut Formatter<'_>,
config: &<JavaScript as Lang>::Config,
format: &<JavaScript as Lang>::Format
) -> Result
fn format(
&self,
out: &mut Formatter<'_>,
config: &<JavaScript as Lang>::Config,
format: &<JavaScript as Lang>::Format
) -> Result
Format the language item appropriately.
sourceimpl LangItem<JavaScript> for Import
impl LangItem<JavaScript> for Import
sourceimpl Ord for JavaScript
impl Ord for JavaScript
sourcefn cmp(&self, other: &JavaScript) -> Ordering
fn cmp(&self, other: &JavaScript) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<JavaScript> for JavaScript
impl PartialEq<JavaScript> for JavaScript
sourcefn 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 ==
. Read more
sourceimpl PartialOrd<JavaScript> for JavaScript
impl PartialOrd<JavaScript> for JavaScript
sourcefn partial_cmp(&self, other: &JavaScript) -> Option<Ordering>
fn partial_cmp(&self, other: &JavaScript) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<'a> Register<JavaScript> for &'a Import
impl<'a> Register<JavaScript> for &'a Import
sourcefn register(self, tokens: &mut Tokens<JavaScript>)
fn register(self, tokens: &mut Tokens<JavaScript>)
Convert the type into tokens.
sourceimpl Register<JavaScript> for Import
impl Register<JavaScript> for Import
sourcefn 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 StructuralEq for JavaScript
impl StructuralPartialEq for JavaScript
Auto Trait Implementations
impl RefUnwindSafe for JavaScript
impl Send for JavaScript
impl Sync for JavaScript
impl Unpin for JavaScript
impl UnwindSafe for JavaScript
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more