[−][src]Struct rslint_parser::Marker
A structure signifying the start of parsing of a syntax tree node
Fields
pos: u32
The index in the events list
start: usize
The byte index where the node starts
old_start: u32
Implementations
impl Marker
[src]
pub fn new(pos: u32, start: usize) -> Marker
[src]
pub fn complete(self, p: &mut Parser<'_>, kind: SyntaxKind) -> CompletedMarker
[src]
Finishes the syntax tree node and assigns kind
to it,
and mark the create a CompletedMarker
for possible future
operation like .precede()
to deal with forward_parent.
pub fn abandon(self, p: &mut Parser<'_>)
[src]
Abandons the syntax tree node. All its children are attached to its parent instead.
Trait Implementations
impl Clone for Marker
[src]
impl Copy for Marker
[src]
impl Debug for Marker
[src]
impl Eq for Marker
[src]
impl Hash for Marker
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<Marker> for Marker
[src]
impl StructuralEq for Marker
[src]
impl StructuralPartialEq for Marker
[src]
Auto Trait Implementations
impl RefUnwindSafe for Marker
impl Send for Marker
impl Sync for Marker
impl Unpin for Marker
impl UnwindSafe for Marker
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erasable for T
unsafe fn unerase(this: NonNull<Erased>) -> NonNull<T>
const ACK_1_1_0: bool
fn erase(this: NonNull<Self>) -> NonNull<Erased>
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,