pub struct BuiltIn {
pub name: &'static str,
pub return_type: &'static str,
}Expand description
Describes a built-in grammar rule.
Fields§
§name: &'static strThe name of the built-in rule (e.g., “ident”, “string”).
return_type: &'static strThe Rust return type of the built-in rule as a string. This allows backends to declare portable types (e.g., “syn_grammar_model::model::types::Identifier”) or backend-specific types (e.g., “syn::Ident”).
Trait Implementations§
impl Eq for BuiltIn
impl StructuralPartialEq for BuiltIn
Auto Trait Implementations§
impl Freeze for BuiltIn
impl RefUnwindSafe for BuiltIn
impl Send for BuiltIn
impl Sync for BuiltIn
impl Unpin for BuiltIn
impl UnsafeUnpin for BuiltIn
impl UnwindSafe for BuiltIn
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