pub struct RhombusLanguage {}Expand description
Rhombus language configuration and metadata.
Implementations§
Trait Implementations§
Source§impl<'config> Builder<RhombusLanguage> for RhombusBuilder<'config>
impl<'config> Builder<RhombusLanguage> for RhombusBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<RhombusLanguage>,
) -> OakDiagnostics<RhombusRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<RhombusLanguage>, ) -> OakDiagnostics<RhombusRoot>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for RhombusLanguage
impl Clone for RhombusLanguage
Source§fn clone(&self) -> RhombusLanguage
fn clone(&self) -> RhombusLanguage
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 RhombusLanguage
impl Debug for RhombusLanguage
Source§impl Default for RhombusLanguage
impl Default for RhombusLanguage
Source§fn default() -> RhombusLanguage
fn default() -> RhombusLanguage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RhombusLanguage
impl<'de> Deserialize<'de> for RhombusLanguage
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 RhombusLanguage
impl Hash for RhombusLanguage
Source§impl HoverProvider<RhombusLanguage> for RhombusHoverProvider
Available on crate feature lsp only.
impl HoverProvider<RhombusLanguage> for RhombusHoverProvider
Available on crate feature
lsp only.Source§impl Language for RhombusLanguage
impl Language for RhombusLanguage
Source§const CATEGORY: LanguageCategory = LanguageCategory::Programming
const CATEGORY: LanguageCategory = LanguageCategory::Programming
The category of the language.
Source§type TokenType = RhombusTokenType
type TokenType = RhombusTokenType
The token type used to represent different token and node types in the language. Read more
Source§type ElementType = RhombusElementType
type ElementType = RhombusElementType
The element type used to represent composite structures in the parsed tree. Read more
Source§type TypedRoot = RhombusRoot
type TypedRoot = RhombusRoot
The root type for the parsed tree that represents the top-level structure of the language. Read more
Source§impl<'config> Lexer<RhombusLanguage> for RhombusLexer<'config>
impl<'config> Lexer<RhombusLanguage> for RhombusLexer<'config>
Source§fn lex<'a, S: Source + ?Sized>(
&self,
source: &S,
_edits: &[TextEdit],
cache: &'a mut impl LexerCache<RhombusLanguage>,
) -> LexOutput<RhombusLanguage>
fn lex<'a, S: Source + ?Sized>( &self, source: &S, _edits: &[TextEdit], cache: &'a mut impl LexerCache<RhombusLanguage>, ) -> LexOutput<RhombusLanguage>
Tokenizes the source text into a sequence of tokens. Read more
Source§impl<'config> Parser<RhombusLanguage> for RhombusParser<'config>
impl<'config> Parser<RhombusLanguage> for RhombusParser<'config>
Source§fn parse<'a, S: Source + ?Sized>(
&self,
text: &'a S,
edits: &[TextEdit],
cache: &'a mut impl ParseCache<RhombusLanguage>,
) -> ParseOutput<'a, RhombusLanguage>
fn parse<'a, S: Source + ?Sized>( &self, text: &'a S, edits: &[TextEdit], cache: &'a mut impl ParseCache<RhombusLanguage>, ) -> ParseOutput<'a, RhombusLanguage>
The core parsing entry point for converting tokens into a syntax tree. Read more
Source§impl PartialEq for RhombusLanguage
impl PartialEq for RhombusLanguage
Source§impl Serialize for RhombusLanguage
impl Serialize for RhombusLanguage
impl Copy for RhombusLanguage
impl Eq for RhombusLanguage
impl StructuralPartialEq for RhombusLanguage
Auto Trait Implementations§
impl Freeze for RhombusLanguage
impl RefUnwindSafe for RhombusLanguage
impl Send for RhombusLanguage
impl Sync for RhombusLanguage
impl Unpin for RhombusLanguage
impl UnsafeUnpin for RhombusLanguage
impl UnwindSafe for RhombusLanguage
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