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
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