pub enum ImmutableVariableOrPropertyPart<'a> {
VariableFieldName(&'a str, &'a Span),
ArrayDestructuringMember(&'a ArrayDestructuringField<VariableFieldInSourceCode>),
ObjectDestructuringMember(&'a WithComment<ObjectDestructuringField<VariableFieldInSourceCode>>),
ClassName(Option<&'a str>, &'a Span),
FunctionName(&'a str, &'a Span),
ClassPropertyKey(&'a WithComment<PropertyKey<PublicOrPrivate>>),
ObjectPropertyKey(&'a WithComment<PropertyKey<AlwaysPublic>>),
}
Expand description
TODO these may go
Variants§
VariableFieldName(&'a str, &'a Span)
ArrayDestructuringMember(&'a ArrayDestructuringField<VariableFieldInSourceCode>)
ObjectDestructuringMember(&'a WithComment<ObjectDestructuringField<VariableFieldInSourceCode>>)
ClassName(Option<&'a str>, &'a Span)
FunctionName(&'a str, &'a Span)
ClassPropertyKey(&'a WithComment<PropertyKey<PublicOrPrivate>>)
ObjectPropertyKey(&'a WithComment<PropertyKey<AlwaysPublic>>)
Implementations§
Trait Implementations§
source§impl<'a> Debug for ImmutableVariableOrPropertyPart<'a>
impl<'a> Debug for ImmutableVariableOrPropertyPart<'a>
impl SelfVisitable for ImmutableVariableOrPropertyPart<'_>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for ImmutableVariableOrPropertyPart<'a>
impl<'a> Send for ImmutableVariableOrPropertyPart<'a>
impl<'a> Sync for ImmutableVariableOrPropertyPart<'a>
impl<'a> Unpin for ImmutableVariableOrPropertyPart<'a>
impl<'a> UnwindSafe for ImmutableVariableOrPropertyPart<'a>
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