pub struct RustIdent {
pub origin: &'static RustOrigin,
pub string: &'static str,
}Expand description
An identifier within the Rust code: let identifier = 10;.
This object is typically created in static memory
(static IDENT: RustIdent = RustIdent { ... }) using the
export macro. Generally, you don’t need to create it
manually.
Fields§
§origin: &'static RustOriginThe range in the Rust source code that points to the underlying identifier.
string: &'static strThe string representation of the identifier.
Trait Implementations§
impl Copy for RustIdent
impl Eq for RustIdent
Source§impl Ord for RustIdent
impl Ord for RustIdent
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
Auto Trait Implementations§
impl Freeze for RustIdent
impl RefUnwindSafe for RustIdent
impl Send for RustIdent
impl Sync for RustIdent
impl Unpin for RustIdent
impl UnsafeUnpin for RustIdent
impl UnwindSafe for RustIdent
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<S> Scannable for S
impl<S> Scannable for S
Source§fn stream<T>(&self) -> TokenStream<'_, T>where
T: Token,
fn stream<T>(&self) -> TokenStream<'_, T>where
T: Token,
Source§fn chunks<T>(&self) -> ChunkScanner<'_, T>where
T: Token,
fn chunks<T>(&self) -> ChunkScanner<'_, T>where
T: Token,
Source§fn chunk_indices<T>(&self) -> ChunkIndicesScanner<'_, T>where
T: Token,
fn chunk_indices<T>(&self) -> ChunkIndicesScanner<'_, T>where
T: Token,
Creates an iterator that scans source code tokens one by one, yielding
their Chunks and byte positions. Read more
Source§fn tokens<T>(&self) -> TokenScanner<'_, T>where
T: Token,
fn tokens<T>(&self) -> TokenScanner<'_, T>where
T: Token,
Creates an iterator that scans source code tokens one by one. Read more
Source§fn token_indices<T>(&self) -> TokenIndicesScanner<'_, T>where
T: Token,
fn token_indices<T>(&self) -> TokenIndicesScanner<'_, T>where
T: Token,
Creates an iterator that scans source code tokens one by one, and
their byte positions. Read more
Source§impl<S> StringEstimation for S
impl<S> StringEstimation for S
Source§impl<S> TerminalString for S
impl<S> TerminalString for S
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more