pub struct DynamicBinding {
pub key: Expr,
pub value: Binding,
}Expand description
A dynamic-keyed binding, kept out of the static map.
Fields§
§key: ExprThe key expression, evaluated at force time in the owning group’s scope.
value: BindingThe bound value. A Binding, not a bare expression: a dynamic key
can bind an attrset literal ({ ${k} = {a=1;}; }), which is already
lowered to a Group by the time it arrives here.
Trait Implementations§
Source§impl Clone for DynamicBinding
impl Clone for DynamicBinding
Source§fn clone(&self) -> DynamicBinding
fn clone(&self) -> DynamicBinding
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for DynamicBinding
impl !Send for DynamicBinding
impl !Sync for DynamicBinding
impl !UnwindSafe for DynamicBinding
impl Freeze for DynamicBinding
impl Unpin for DynamicBinding
impl UnsafeUnpin for DynamicBinding
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