pub struct ScriptIdent { /* private fields */ }Expand description
An identifier within the Script code: let identifier = 10;.
You cannot instantiate this object manually, but certain API functions return instances of it (e.g., VarSymbol::var_name).
You can retrieve the actual string of the identifier using the Display,
Debug, and AsRef
The ScriptIdent holds a copy of the identifier’s string from the time
of its creation. Therefore, the string does not become obsolete or change
even if the source code of the Script is modified.
Trait Implementations§
Source§impl AsRef<str> for ScriptIdent
impl AsRef<str> for ScriptIdent
Source§impl Clone for ScriptIdent
impl Clone for ScriptIdent
Source§fn clone(&self) -> ScriptIdent
fn clone(&self) -> ScriptIdent
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 moreSource§impl Debug for ScriptIdent
impl Debug for ScriptIdent
Source§impl Display for ScriptIdent
impl Display for ScriptIdent
impl Eq for ScriptIdent
Source§impl From<ScriptIdent> for Ident
impl From<ScriptIdent> for Ident
Source§fn from(value: ScriptIdent) -> Self
fn from(value: ScriptIdent) -> Self
Converts to this type from the input type.
Source§impl Hash for ScriptIdent
impl Hash for ScriptIdent
Source§impl Ord for ScriptIdent
impl Ord for ScriptIdent
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
Source§impl PartialEq for ScriptIdent
impl PartialEq for ScriptIdent
Auto Trait Implementations§
impl Freeze for ScriptIdent
impl RefUnwindSafe for ScriptIdent
impl Send for ScriptIdent
impl Sync for ScriptIdent
impl Unpin for ScriptIdent
impl UnsafeUnpin for ScriptIdent
impl UnwindSafe for ScriptIdent
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