pub struct GetDepComponentMacro;
Expand description
Macro for getting a component given a contract state that has it.
Trait Implementations§
source§impl Debug for GetDepComponentMacro
impl Debug for GetDepComponentMacro
source§impl Default for GetDepComponentMacro
impl Default for GetDepComponentMacro
source§fn default() -> GetDepComponentMacro
fn default() -> GetDepComponentMacro
Returns the “default value” for a type. Read more
source§impl InlineMacroExprPlugin for GetDepComponentMacro
impl InlineMacroExprPlugin for GetDepComponentMacro
source§fn generate_code(
&self,
db: &dyn SyntaxGroup,
syntax: &ExprInlineMacro,
_metadata: &MacroPluginMetadata<'_>,
) -> InlinePluginResult
fn generate_code( &self, db: &dyn SyntaxGroup, syntax: &ExprInlineMacro, _metadata: &MacroPluginMetadata<'_>, ) -> 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§fn documentation(&self) -> Option<String>
fn documentation(&self) -> Option<String>
Allows for the plugin to provide documentation for an inline macro.
source§impl NamedPlugin for GetDepComponentMacro
impl NamedPlugin for GetDepComponentMacro
Auto Trait Implementations§
impl Freeze for GetDepComponentMacro
impl RefUnwindSafe for GetDepComponentMacro
impl Send for GetDepComponentMacro
impl Sync for GetDepComponentMacro
impl Unpin for GetDepComponentMacro
impl UnwindSafe for GetDepComponentMacro
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more