[−][src]Enum nu_protocol::hir::Expression
Variants
Literal(Literal)Synthetic(Synthetic)Variable(Variable)Block(Block)List(Vec<SpannedExpression>)Table(Vec<SpannedExpression>, Vec<Vec<SpannedExpression>>)FilePath(PathBuf)ExternalCommand(ExternalStringCommand)Invocation(Block)Boolean(bool)Implementations
impl Expression[src]
pub fn integer(i: i64) -> Expression[src]
pub fn decimal(f: f64) -> Result<Expression, ParseError>[src]
pub fn string(s: String) -> Expression[src]
pub fn operator(operator: Operator) -> Expression[src]
pub fn range(
left: Option<SpannedExpression>,
operator: Spanned<RangeOperator>,
right: Option<SpannedExpression>
) -> Expression[src]
left: Option<SpannedExpression>,
operator: Spanned<RangeOperator>,
right: Option<SpannedExpression>
) -> Expression
pub fn pattern(p: String) -> Expression[src]
pub fn file_path(file_path: PathBuf) -> Expression[src]
pub fn simple_column_path(members: Vec<Member>) -> Expression[src]
pub fn path(
head: SpannedExpression,
tail: Vec<impl Into<PathMember>>
) -> Expression[src]
head: SpannedExpression,
tail: Vec<impl Into<PathMember>>
) -> Expression
pub fn unit(i: Spanned<i64>, unit: Spanned<Unit>) -> Expression[src]
pub fn variable(v: String, span: Span) -> Expression[src]
Trait Implementations
impl Clone for Expression[src]
fn clone(&self) -> Expression[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for Expression[src]
impl<'de> Deserialize<'de> for Expression[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Eq for Expression[src]
impl Hash for Expression[src]
fn hash<__H: Hasher>(&self, state: &mut __H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl IntoSpanned for Expression[src]
type Output = SpannedExpression
fn into_spanned(self, span: impl Into<Span>) -> Self::Output[src]
impl Ord for Expression[src]
fn cmp(&self, other: &Expression) -> Ordering[src]
#[must_use]fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self[src]
impl PartialEq<Expression> for Expression[src]
fn eq(&self, other: &Expression) -> bool[src]
fn ne(&self, other: &Expression) -> bool[src]
impl PartialOrd<Expression> for Expression[src]
fn partial_cmp(&self, other: &Expression) -> Option<Ordering>[src]
fn lt(&self, other: &Expression) -> bool[src]
fn le(&self, other: &Expression) -> bool[src]
fn gt(&self, other: &Expression) -> bool[src]
fn ge(&self, other: &Expression) -> bool[src]
impl Serialize for Expression[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl ShellTypeName for Expression[src]
impl StructuralEq for Expression[src]
impl StructuralPartialEq for Expression[src]
Auto Trait Implementations
impl RefUnwindSafe for Expression
impl Send for Expression
impl Sync for Expression
impl Unpin for Expression
impl UnwindSafe for Expression
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> IntoSpanned for T where
T: HasFallibleSpan, [src]
T: HasFallibleSpan,
type Output = T
fn into_spanned(self, _span: impl Into<Span>) -> <T as IntoSpanned>::Output[src]
impl<T> SpannedItem for T[src]
fn spanned(self, span: impl Into<Span>) -> Spanned<Self>[src]
fn spanned_unknown(self) -> Spanned<Self>[src]
impl<T> TaggedItem for T[src]
fn tagged(self, tag: impl Into<Tag>) -> Tagged<Self>[src]
fn tagged_unknown(self) -> Tagged<Self>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,