pub struct Injection {
pub method: Ident,
pub value: Expr,
}Expand description
One call(with = "…", value = "…") — a link whose value comes from the declaration itself.
Fields§
§method: IdentThe method’s OWN name, spelled in full.
Not a field name with with_ pasted on: there is no field here to derive one from, and the
same is true of the field seat’s with = "…" — in both positions the value names the method.
value: ExprThe expression the link is handed, re-parsed from the string that carried it.
An EXPRESSION rather than a literal, so the seat reaches a constant, a path, a call — whatever the upstream’s argument really is. It is emitted verbatim; what it means is the compiler’s.
Trait Implementations§
impl Eq for Injection
impl StructuralPartialEq for Injection
Auto Trait Implementations§
impl !Send for Injection
impl !Sync for Injection
impl Freeze for Injection
impl RefUnwindSafe for Injection
impl Unpin for Injection
impl UnsafeUnpin for Injection
impl UnwindSafe for Injection
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