Struct language2::SyntaxLayerInfo
source · pub struct SyntaxLayerInfo<'a> {
pub depth: usize,
pub language: &'a Arc<Language>,
/* private fields */
}
Fields§
§depth: usize
§language: &'a Arc<Language>
Implementations§
source§impl<'a> SyntaxLayerInfo<'a>
impl<'a> SyntaxLayerInfo<'a>
pub fn to_owned(&self) -> OwnedSyntaxLayerInfo
pub fn node(&self) -> Node<'a>
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SyntaxLayerInfo<'a>
impl<'a> Send for SyntaxLayerInfo<'a>
impl<'a> Sync for SyntaxLayerInfo<'a>
impl<'a> Unpin for SyntaxLayerInfo<'a>
impl<'a> !UnwindSafe for SyntaxLayerInfo<'a>
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