pub struct Location {
pub start: usize,
pub end: usize,
}Expand description
Represents a location in the source Dataweave expression, typically used for error reporting.
The start and end fields represent the character offsets in the source string.
Fields§
§start: usizeThe starting character offset of the location (inclusive).
end: usizeThe ending character offset of the location (exclusive).
Implementations§
Trait Implementations§
impl Copy for Location
impl Eq for Location
impl StructuralPartialEq for Location
Auto Trait Implementations§
impl Freeze for Location
impl RefUnwindSafe for Location
impl Send for Location
impl Sync for Location
impl Unpin for Location
impl UnwindSafe for Location
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