pub struct IdentifierOccurrence {
pub start_byte: usize,
pub end_byte: usize,
pub expands_shorthand_key: bool,
}Expand description
The byte span of one identifier occurrence, as a half-open range.
Fields§
§start_byte: usize§end_byte: usize§expands_shorthand_key: boolThis occurrence is a JS-like object-literal shorthand ({ beta }),
where the one token is both the property name and a read of the binding.
Overwriting the span would silently rename the property too, so the
splice writes beta: newName and both survive.
Trait Implementations§
Source§impl Clone for IdentifierOccurrence
impl Clone for IdentifierOccurrence
Source§fn clone(&self) -> IdentifierOccurrence
fn clone(&self) -> IdentifierOccurrence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IdentifierOccurrence
Source§impl Debug for IdentifierOccurrence
impl Debug for IdentifierOccurrence
impl Eq for IdentifierOccurrence
Source§impl PartialEq for IdentifierOccurrence
impl PartialEq for IdentifierOccurrence
impl StructuralPartialEq for IdentifierOccurrence
Auto Trait Implementations§
impl Freeze for IdentifierOccurrence
impl RefUnwindSafe for IdentifierOccurrence
impl Send for IdentifierOccurrence
impl Sync for IdentifierOccurrence
impl Unpin for IdentifierOccurrence
impl UnsafeUnpin for IdentifierOccurrence
impl UnwindSafe for IdentifierOccurrence
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