pub struct ParamBinding<P: Phase = Raw> {
pub name: Ident,
pub value: Expr<P>,
pub span: Span,
}Expand description
A param binding in a module instantiation: name: expr.
Used in include "path"(name: expr, ...) { ... };
Fields§
§name: IdentThe param name in the imported file.
value: Expr<P>The value expression (evaluated in the importer’s scope).
span: SpanSpan covering the entire name: expr.
Trait Implementations§
Source§impl<P: Clone + Phase> Clone for ParamBinding<P>
impl<P: Clone + Phase> Clone for ParamBinding<P>
Source§fn clone(&self) -> ParamBinding<P>
fn clone(&self) -> ParamBinding<P>
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 FormatEquivalent for ParamBinding
impl FormatEquivalent for ParamBinding
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.Source§impl From<ParamBinding> for ParamBinding<Desugared>
impl From<ParamBinding> for ParamBinding<Desugared>
Source§fn from(p: ParamBinding<Raw>) -> Self
fn from(p: ParamBinding<Raw>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<P> Freeze for ParamBinding<P>
impl<P> RefUnwindSafe for ParamBinding<P>
impl<P> Send for ParamBinding<P>
impl<P> Sync for ParamBinding<P>
impl<P> Unpin for ParamBinding<P>
impl<P> UnsafeUnpin for ParamBinding<P>
impl<P> UnwindSafe for ParamBinding<P>
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