Struct TokenArenaIdx
pub struct TokenArenaIdx(/* private fields */);Expand description
Index into crate::model::ParsedTree::token_arena — a
crate::model::NodeValue::Token’s payload.
Implementations§
§impl TokenArenaIdx
impl TokenArenaIdx
Trait Implementations§
§impl Clone for TokenArenaIdx
impl Clone for TokenArenaIdx
§fn clone(&self) -> TokenArenaIdx
fn clone(&self) -> TokenArenaIdx
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TokenArenaIdx
§impl Debug for TokenArenaIdx
impl Debug for TokenArenaIdx
impl Eq for TokenArenaIdx
§impl From<TokenArenaIdx> for usize
impl From<TokenArenaIdx> for usize
§fn from(v: TokenArenaIdx) -> usize
fn from(v: TokenArenaIdx) -> usize
Converts to this type from the input type.
§impl From<usize> for TokenArenaIdx
impl From<usize> for TokenArenaIdx
§impl Hash for TokenArenaIdx
impl Hash for TokenArenaIdx
§impl Ord for TokenArenaIdx
impl Ord for TokenArenaIdx
§fn cmp(&self, other: &TokenArenaIdx) -> Ordering
fn cmp(&self, other: &TokenArenaIdx) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
§impl PartialEq for TokenArenaIdx
impl PartialEq for TokenArenaIdx
§impl PartialOrd for TokenArenaIdx
impl PartialOrd for TokenArenaIdx
impl StructuralPartialEq for TokenArenaIdx
Auto Trait Implementations§
impl Freeze for TokenArenaIdx
impl RefUnwindSafe for TokenArenaIdx
impl Send for TokenArenaIdx
impl Sync for TokenArenaIdx
impl Unpin for TokenArenaIdx
impl UnsafeUnpin for TokenArenaIdx
impl UnwindSafe for TokenArenaIdx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<K, V> TiSliceIndex<K, V> for K
impl<K, V> TiSliceIndex<K, V> for K
§fn get(
self,
slice: &TiSlice<K, V>,
) -> Option<&<K as TiSliceIndex<K, V>>::Output>
fn get( self, slice: &TiSlice<K, V>, ) -> Option<&<K as TiSliceIndex<K, V>>::Output>
Returns a shared reference to the output at this location, if in
bounds.
§fn get_mut(
self,
slice: &mut TiSlice<K, V>,
) -> Option<&mut <K as TiSliceIndex<K, V>>::Output>
fn get_mut( self, slice: &mut TiSlice<K, V>, ) -> Option<&mut <K as TiSliceIndex<K, V>>::Output>
Returns a mutable reference to the output at this location, if in
bounds.
§unsafe fn get_unchecked(
self,
slice: &TiSlice<K, V>,
) -> &<K as TiSliceIndex<K, V>>::Output
unsafe fn get_unchecked( self, slice: &TiSlice<K, V>, ) -> &<K as TiSliceIndex<K, V>>::Output
Returns a shared reference to the output at this location, without
performing any bounds checking. Read more
§unsafe fn get_unchecked_mut(
self,
slice: &mut TiSlice<K, V>,
) -> &mut <K as TiSliceIndex<K, V>>::Output
unsafe fn get_unchecked_mut( self, slice: &mut TiSlice<K, V>, ) -> &mut <K as TiSliceIndex<K, V>>::Output
Returns a mutable reference to the output at this location, without
performing any bounds checking. Read more