Struct rsjsonnet_lang::span::SpanManager
source · pub struct SpanManager { /* private fields */ }Implementations§
source§impl SpanManager
impl SpanManager
pub fn new() -> Self
pub fn insert_source_context(&mut self, len: usize) -> (SpanContextId, SourceId)
pub fn get_context(&self, context: SpanContextId) -> &SpanContext
pub fn intern_span( &mut self, context: SpanContextId, start: usize, end: usize, ) -> SpanId
pub fn get_span(&self, span: SpanId) -> (SpanContextId, usize, usize)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SpanManager
impl RefUnwindSafe for SpanManager
impl Send for SpanManager
impl Sync for SpanManager
impl Unpin for SpanManager
impl UnwindSafe for SpanManager
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