pub struct PrologLanguage {}Expand description
Prolog language definition.
Implementations§
Trait Implementations§
Source§impl Builder<PrologLanguage> for PrologBuilder
impl Builder<PrologLanguage> for PrologBuilder
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<PrologLanguage>,
) -> BuildOutput<PrologLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<PrologLanguage>, ) -> BuildOutput<PrologLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for PrologLanguage
impl Clone for PrologLanguage
Source§fn clone(&self) -> PrologLanguage
fn clone(&self) -> PrologLanguage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrologLanguage
impl Debug for PrologLanguage
Source§impl Default for PrologLanguage
impl Default for PrologLanguage
Source§fn default() -> PrologLanguage
fn default() -> PrologLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrologLanguage
impl<'de> Deserialize<'de> for PrologLanguage
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for PrologLanguage
impl Hash for PrologLanguage
Source§impl HoverProvider<PrologLanguage> for PrologHoverProvider
Available on crate feature lsp only.
impl HoverProvider<PrologLanguage> for PrologHoverProvider
Available on crate feature
lsp only.Source§impl Language for PrologLanguage
impl Language for PrologLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = PrologTokenType
type TokenType = PrologTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = PrologElementType
type ElementType = PrologElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = PrologRoot
type TypedRoot = PrologRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<PrologLanguage> for PrologLexer<'config>
impl<'config> Lexer<PrologLanguage> for PrologLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &'a S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<PrologLanguage>,
) -> LexOutput<PrologLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &'a S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<PrologLanguage>, ) -> LexOutput<PrologLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl Ord for PrologLanguage
impl Ord for PrologLanguage
Source§fn cmp(&self, other: &PrologLanguage) -> Ordering
fn cmp(&self, other: &PrologLanguage) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
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
Source§impl PartialEq for PrologLanguage
impl PartialEq for PrologLanguage
Source§impl PartialOrd for PrologLanguage
impl PartialOrd for PrologLanguage
Source§impl Serialize for PrologLanguage
impl Serialize for PrologLanguage
impl Copy for PrologLanguage
impl Eq for PrologLanguage
impl StructuralPartialEq for PrologLanguage
Auto Trait Implementations§
impl Freeze for PrologLanguage
impl RefUnwindSafe for PrologLanguage
impl Send for PrologLanguage
impl Sync for PrologLanguage
impl Unpin for PrologLanguage
impl UnsafeUnpin for PrologLanguage
impl UnwindSafe for PrologLanguage
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