pub struct NativeSyntaxRule {
pub language: NativeLanguage,
pub flags: SnytaxFlags,
pub tag: &'static str,
pub name: &'static str,
pub styles: &'static [&'static str],
}
Fields§
§language: NativeLanguage
§flags: SnytaxFlags
§tag: &'static str
§name: &'static str
§styles: &'static [&'static str]
Trait Implementations§
Source§impl GuestSyntaxRule for NativeSyntaxRule
impl GuestSyntaxRule for NativeSyntaxRule
fn get_flags(&self) -> SnytaxFlags
fn get_language(&self) -> Language
Source§fn get_tag(&self) -> String
fn get_tag(&self) -> String
Labeling of nodes
If this is a union node, tag represents branch tag
If this is a class node, tag means node tag
An empty string is equivalent to no tag
fn get_rule_name(&self) -> String
fn get_styles(&self) -> Vec<String>
Auto Trait Implementations§
impl Freeze for NativeSyntaxRule
impl RefUnwindSafe for NativeSyntaxRule
impl Send for NativeSyntaxRule
impl Sync for NativeSyntaxRule
impl Unpin for NativeSyntaxRule
impl UnwindSafe for NativeSyntaxRule
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