Struct kind_span::SyntaxCtxIndex
source · pub struct SyntaxCtxIndex(pub usize);Expand description
A syntax context index.
Tuple Fields§
§0: usizeImplementations§
source§impl SyntaxCtxIndex
impl SyntaxCtxIndex
pub fn new(size: usize) -> SyntaxCtxIndex
Trait Implementations§
source§impl Clone for SyntaxCtxIndex
impl Clone for SyntaxCtxIndex
source§fn clone(&self) -> SyntaxCtxIndex
fn clone(&self) -> SyntaxCtxIndex
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for SyntaxCtxIndex
impl Debug for SyntaxCtxIndex
source§impl Hash for SyntaxCtxIndex
impl Hash for SyntaxCtxIndex
source§impl Ord for SyntaxCtxIndex
impl Ord for SyntaxCtxIndex
source§fn cmp(&self, other: &SyntaxCtxIndex) -> Ordering
fn cmp(&self, other: &SyntaxCtxIndex) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SyntaxCtxIndex> for SyntaxCtxIndex
impl PartialEq<SyntaxCtxIndex> for SyntaxCtxIndex
source§fn eq(&self, other: &SyntaxCtxIndex) -> bool
fn eq(&self, other: &SyntaxCtxIndex) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SyntaxCtxIndex> for SyntaxCtxIndex
impl PartialOrd<SyntaxCtxIndex> for SyntaxCtxIndex
source§fn partial_cmp(&self, other: &SyntaxCtxIndex) -> Option<Ordering>
fn partial_cmp(&self, other: &SyntaxCtxIndex) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read more