Struct makepad_shader_compiler::shader_parser::SpanTracker
source · [−]pub struct SpanTracker {
pub file_id: LiveFileId,
pub start: TextPos,
pub start_index: usize,
}
Fields
file_id: LiveFileId
start: TextPos
start_index: usize
Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more