Struct boa::syntax::ast::node::identifier::Identifier
source · [−]pub struct Identifier { /* private fields */ }
Expand description
An identifier
is a sequence of characters in the code that identifies a variable,
function, or property.
In JavaScript, identifiers are case-sensitive and can contain Unicode letters, $, _, and digits (0-9), but may not start with a digit.
An identifier differs from a string in that a string is data, while an identifier is part of the code. In JavaScript, there is no way to convert identifiers to strings, but sometimes it is possible to parse strings into identifiers.
More information:
Trait Implementations
sourceimpl AsRef<str> for Identifier
impl AsRef<str> for Identifier
sourceimpl Clone for Identifier
impl Clone for Identifier
sourcefn clone(&self) -> Identifier
fn clone(&self) -> Identifier
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 moresourceimpl Debug for Identifier
impl Debug for Identifier
sourceimpl Display for Identifier
impl Display for Identifier
sourceimpl Drop for Identifier
impl Drop for Identifier
sourceimpl Executable for Identifier
impl Executable for Identifier
sourceimpl Finalize for Identifier
impl Finalize for Identifier
sourceimpl From<Identifier> for Node
impl From<Identifier> for Node
sourcefn from(local: Identifier) -> Self
fn from(local: Identifier) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<Identifier> for Identifier
impl PartialEq<Identifier> for Identifier
sourcefn eq(&self, other: &Identifier) -> bool
fn eq(&self, other: &Identifier) -> bool
sourceimpl Trace for Identifier
impl Trace for Identifier
sourcefn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects Read more
impl StructuralPartialEq for Identifier
Auto Trait Implementations
impl RefUnwindSafe for Identifier
impl Send for Identifier
impl Sync for Identifier
impl Unpin for Identifier
impl UnwindSafe for Identifier
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