Struct cfgrammar::TIdx [−][src]
pub struct TIdx<T>(pub T);
Expand description
A type specifically for token indices.
It is guaranteed that TIdx
can be converted, without loss of precision, to usize
with
the idiom TIdx::from(x_usize)
. usize
values can be converted to TIdx
, causing a
panic if this would lead to a loss of precision with usize::from(y_tidx)
.
Tuple Fields
0: T
Implementations
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for TIdx<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for TIdx<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.