pub struct PrologParser { /* private fields */ }Expand description
Prolog parser.
Implementations§
Source§impl PrologParser
impl PrologParser
Sourcepub fn new(language: PrologLanguage) -> Self
pub fn new(language: PrologLanguage) -> Self
Creates a new PrologParser with the given language configuration.
Trait Implementations§
Source§impl Parser<PrologLanguage> for PrologParser
impl Parser<PrologLanguage> for PrologParser
Source§fn parse<'s, S: Source + ?Sized>(
&self,
text: &'s S,
edits: &[TextEdit],
cache: &'s mut impl ParseCache<PrologLanguage>,
) -> ParseOutput<'s, PrologLanguage>
fn parse<'s, S: Source + ?Sized>( &self, text: &'s S, edits: &[TextEdit], cache: &'s mut impl ParseCache<PrologLanguage>, ) -> ParseOutput<'s, PrologLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Auto Trait Implementations§
impl Freeze for PrologParser
impl RefUnwindSafe for PrologParser
impl Send for PrologParser
impl Sync for PrologParser
impl Unpin for PrologParser
impl UnsafeUnpin for PrologParser
impl UnwindSafe for PrologParser
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