Trait swc_core::ecma::utils::swc_common::source_map::Pos

pub trait Pos {
    // Required methods
    fn from_usize(n: usize) -> Self;
    fn to_usize(&self) -> usize;
    fn from_u32(n: u32) -> Self;
    fn to_u32(&self) -> u32;
}
Available on crate features __ecma and __utils only.

Required Methods§

fn from_usize(n: usize) -> Self

fn to_usize(&self) -> usize

fn from_u32(n: u32) -> Self

fn to_u32(&self) -> u32

Object Safety§

This trait is not object safe.

Implementors§

§

impl Pos for BytePos

§

impl Pos for CharPos