Type Alias ezno_parser::cursor::EmptyCursorId

source ·
pub type EmptyCursorId = CursorId<()>;

Aliased Type§

struct EmptyCursorId(pub u8, pub PhantomData<()>);

Fields§

§0: u8§1: PhantomData<()>

Implementations§

source§

impl EmptyCursorId

source

pub fn new(id: u8) -> Self

Trait Implementations§

source§

impl<T: Clone> Clone for CursorId<T>

source§

fn clone(&self) -> CursorId<T>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<T: Debug> Debug for CursorId<T>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<T: PartialEq> PartialEq<CursorId<T>> for CursorId<T>

source§

fn eq(&self, other: &CursorId<T>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<T> SelfRustTokenize for CursorId<T>

source§

fn append_to_token_stream(&self, token_stream: &mut TokenStream)

source§

fn to_tokens(&self) -> TokenStream

Returns the tokens used to construct self
source§

impl<T> Serialize for CursorId<T>

source§

fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl<T: Copy> Copy for CursorId<T>

source§

impl<T: Eq> Eq for CursorId<T>

source§

impl<T> StructuralEq for CursorId<T>

source§

impl<T> StructuralPartialEq for CursorId<T>