nu_protocol/ast/
value_with_unit.rs

1
2
3
4
5
6
7
8
9
use super::Expression;
use crate::{Spanned, Unit};
use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ValueWithUnit {
    pub expr: Expression,
    pub unit: Spanned<Unit>,
}