Struct tvix_eval::compiler::bindings::TrackedBindings
source · struct TrackedBindings {
bindings: Vec<TrackedBinding>,
}
Fields§
§bindings: Vec<TrackedBinding>
Implementations§
source§impl TrackedBindings
impl TrackedBindings
fn new() -> Self
sourcefn try_merge(
&mut self,
c: &mut Compiler<'_, '_>,
span: Span,
name: &Attr,
remaining_path: Peekable<AstChildren<Attr>>,
value: Expr,
) -> bool
fn try_merge( &mut self, c: &mut Compiler<'_, '_>, span: Span, name: &Attr, remaining_path: Peekable<AstChildren<Attr>>, value: Expr, ) -> bool
Attempt to merge an entry into an existing matching binding, assuming that the provided binding is mergable (i.e. either a nested key or an attribute set literal).
Returns true if the binding was merged, false if it needs to be compiled separately as a new binding.
Auto Trait Implementations§
impl Freeze for TrackedBindings
impl !RefUnwindSafe for TrackedBindings
impl !Send for TrackedBindings
impl !Sync for TrackedBindings
impl Unpin for TrackedBindings
impl !UnwindSafe for TrackedBindings
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