pub struct IdentifierData {
pub atom: Atom,
pub escaped_text: String,
pub original_text: Option<String>,
pub type_arguments: Option<NodeList>,
}Expand description
Data for identifier nodes (Identifier, PrivateIdentifier)
Fields§
§atom: AtomInterned atom for O(1) comparison (OPTIMIZATION: use this instead of escaped_text)
escaped_text: StringThe identifier text (DEPRECATED: kept for backward compatibility during migration)
original_text: Option<String>§type_arguments: Option<NodeList>Trait Implementations§
Source§impl Clone for IdentifierData
impl Clone for IdentifierData
Source§fn clone(&self) -> IdentifierData
fn clone(&self) -> IdentifierData
Returns a duplicate 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 IdentifierData
impl Debug for IdentifierData
Source§impl<'de> Deserialize<'de> for IdentifierData
impl<'de> Deserialize<'de> for IdentifierData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for IdentifierData
impl RefUnwindSafe for IdentifierData
impl Send for IdentifierData
impl Sync for IdentifierData
impl Unpin for IdentifierData
impl UnsafeUnpin for IdentifierData
impl UnwindSafe for IdentifierData
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