pub struct SpanTracker {
pub file_id: LiveFileId,
pub start: TextPos,
pub start_index: usize,
}
Fields§
§file_id: LiveFileId
§start: TextPos
§start_index: usize
Implementations§
source§impl SpanTracker
impl SpanTracker
pub fn end<F, R>(&self, parser: &mut ShaderParser<'_>, f: F) -> Rwhere F: FnOnce(TokenSpan) -> R,
pub fn error( &self, parser: &mut ShaderParser<'_>, origin: LiveErrorOrigin, message: String ) -> LiveError
Auto Trait Implementations§
impl RefUnwindSafe for SpanTracker
impl Send for SpanTracker
impl Sync for SpanTracker
impl Unpin for SpanTracker
impl UnwindSafe for SpanTracker
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