pub struct SyntaxInjection { /* private fields */ }Implementations§
Source§impl SyntaxInjection
impl SyntaxInjection
pub fn new( language: &'static str, host_byte_range: Range<usize>, content_byte_range: Range<usize>, tree: Tree, ) -> Self
pub fn language(&self) -> &'static str
pub fn host_byte_range(&self) -> Range<usize> ⓘ
pub fn content_byte_range(&self) -> Range<usize> ⓘ
pub fn tree(&self) -> &Tree
Auto Trait Implementations§
impl Freeze for SyntaxInjection
impl RefUnwindSafe for SyntaxInjection
impl Send for SyntaxInjection
impl Sync for SyntaxInjection
impl Unpin for SyntaxInjection
impl UnsafeUnpin for SyntaxInjection
impl UnwindSafe for SyntaxInjection
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