pub struct MacroModel {
pub name: String,
pub rules: Vec<(String, String)>,
}Expand description
A macro the crate exports (#[macro_export]) that declares through a declaration
macro: what a crate built on this one declares by invoking it
(ferroui_controls::ferro_markup_list!(pub Names: String);). The scan of that crate
expands the invocation with the rules, as it expands the macros of its own crate.
Fields§
§name: String§rules: Vec<(String, String)>The rules, each the text of the tokens of its matcher and of its transcriber, with
$crate written as it is.
Trait Implementations§
Source§impl Clone for MacroModel
impl Clone for MacroModel
Source§fn clone(&self) -> MacroModel
fn clone(&self) -> MacroModel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MacroModel
impl Debug for MacroModel
impl Eq for MacroModel
Source§impl PartialEq for MacroModel
impl PartialEq for MacroModel
impl StructuralPartialEq for MacroModel
Auto Trait Implementations§
impl Freeze for MacroModel
impl RefUnwindSafe for MacroModel
impl Send for MacroModel
impl Sync for MacroModel
impl Unpin for MacroModel
impl UnsafeUnpin for MacroModel
impl UnwindSafe for MacroModel
Blanket Implementations§
Source§impl<T> AnyValue for Twhere
T: PartialEq + 'static,
impl<T> AnyValue for Twhere
T: PartialEq + 'static,
fn any_value_as_any(&self) -> &(dyn Any + 'static)
fn any_value_eq(&self, other: &(dyn AnyValue + 'static)) -> bool
fn any_value_type_name(&self) -> &'static str
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more