Struct cairo_lang_starknet::inline_macros::selector::SelectorMacro
source · pub struct SelectorMacro;
Expand description
Macro for expanding a selector to a string literal.
Trait Implementations§
source§impl Debug for SelectorMacro
impl Debug for SelectorMacro
source§impl Default for SelectorMacro
impl Default for SelectorMacro
source§fn default() -> SelectorMacro
fn default() -> SelectorMacro
Returns the “default value” for a type. Read more
source§impl InlineMacroExprPlugin for SelectorMacro
impl InlineMacroExprPlugin for SelectorMacro
source§fn generate_code(
&self,
db: &dyn SyntaxGroup,
syntax: &ExprInlineMacro
) -> InlinePluginResult
fn generate_code( &self, db: &dyn SyntaxGroup, syntax: &ExprInlineMacro ) -> InlinePluginResult
Generates code for an item. If no code should be generated returns None.
Otherwise, returns (virtual_module_name, module_content), and a virtual submodule
with that name and content should be created.
source§impl NamedPlugin for SelectorMacro
impl NamedPlugin for SelectorMacro
Auto Trait Implementations§
impl RefUnwindSafe for SelectorMacro
impl Send for SelectorMacro
impl Sync for SelectorMacro
impl Unpin for SelectorMacro
impl UnwindSafe for SelectorMacro
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