Struct tvix_eval::EvaluationResult
source · pub struct EvaluationResult {
pub value: Option<Value>,
pub errors: Vec<Error>,
pub warnings: Vec<EvalWarning>,
pub expr: Option<Expr>,
}
Expand description
Result of evaluating a piece of Nix code. If evaluation succeeded, a value will be present (and potentially some warnings!). If evaluation failed, errors will be present.
Fields§
§value: Option<Value>
Nix value that the code evaluated to.
errors: Vec<Error>
Errors that occured during evaluation (if any).
warnings: Vec<EvalWarning>
Warnings that occured during evaluation. Warnings are not critical, but should be addressed either to modernise code or improve performance.
expr: Option<Expr>
AST node that was parsed from the code (on success only).
Trait Implementations§
source§impl Debug for EvaluationResult
impl Debug for EvaluationResult
source§impl Default for EvaluationResult
impl Default for EvaluationResult
source§fn default() -> EvaluationResult
fn default() -> EvaluationResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvaluationResult
impl !RefUnwindSafe for EvaluationResult
impl !Send for EvaluationResult
impl !Sync for EvaluationResult
impl Unpin for EvaluationResult
impl !UnwindSafe for EvaluationResult
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