pub struct NativeSyntaxData {
pub rule: &'static str,
pub text: Rc<str>,
pub span: Range<usize>,
}
Fields§
§rule: &'static str
§text: Rc<str>
§span: Range<usize>
Implementations§
Source§impl NativeSyntaxData
impl NativeSyntaxData
pub fn new<R: YggdrasilRule>( input: Rc<str>, pair: TokenPair<'_, R>, ) -> Node<NativeSyntaxData>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NativeSyntaxData
impl RefUnwindSafe for NativeSyntaxData
impl !Send for NativeSyntaxData
impl !Sync for NativeSyntaxData
impl Unpin for NativeSyntaxData
impl UnwindSafe for NativeSyntaxData
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