pub struct TokenLocation {
pub start: SourcePosition,
pub end: SourcePosition,
}
Expand description
Represents the location of a token in its source shell script.
Fields§
§start: SourcePosition
The start position of the token.
end: SourcePosition
The end position of the token (exclusive).
Trait Implementations§
Source§impl Clone for TokenLocation
impl Clone for TokenLocation
Source§fn clone(&self) -> TokenLocation
fn clone(&self) -> TokenLocation
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 TokenLocation
impl Debug for TokenLocation
Source§impl Default for TokenLocation
impl Default for TokenLocation
Source§fn default() -> TokenLocation
fn default() -> TokenLocation
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TokenLocation
impl RefUnwindSafe for TokenLocation
impl Send for TokenLocation
impl Sync for TokenLocation
impl Unpin for TokenLocation
impl UnwindSafe for TokenLocation
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)