Struct garden_lang_parser::ast::SourceString
source · pub struct SourceString {
pub offset: usize,
pub src: String,
}Expand description
An owned string of the source text associated with a definition.
Fields§
§offset: usizeThe offset of this string into the defining file, at the time of evaluation.
src: StringThe string containing this definition.
Trait Implementations§
source§impl Clone for SourceString
impl Clone for SourceString
source§fn clone(&self) -> SourceString
fn clone(&self) -> SourceString
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 SourceString
impl Debug for SourceString
source§impl PartialEq for SourceString
impl PartialEq for SourceString
impl Eq for SourceString
impl StructuralPartialEq for SourceString
Auto Trait Implementations§
impl Freeze for SourceString
impl RefUnwindSafe for SourceString
impl Send for SourceString
impl Sync for SourceString
impl Unpin for SourceString
impl UnwindSafe for SourceString
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)