pub enum Offsets {
Utf16,
Chars,
Bytes,
}Expand description
What the start and end offsets in Ast::to_estree_with’s JSON
count from the start of the source.
Variants§
Utf16
UTF-16 code units, as acorn gives and a JavaScript string indexes.
Chars
Characters (Unicode scalar values), as a Python str indexes.
Bytes
UTF-8 bytes, as the source &str indexes.
Trait Implementations§
impl Copy for Offsets
impl Eq for Offsets
impl StructuralPartialEq for Offsets
Auto Trait Implementations§
impl Forget for Offsets
impl Freeze for Offsets
impl Move for Offsets
impl RefUnwindSafe for Offsets
impl Send for Offsets
impl Sync for Offsets
impl Unpin for Offsets
impl UnsafeUnpin for Offsets
impl UnwindSafe for Offsets
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