Enum nu_protocol::hir::Expression [−][src]
pub enum Expression {
Show variants
Literal(Literal),
ExternalWord,
Synthetic(Synthetic),
Variable(String, Span),
Binary(Box<Binary>),
Range(Box<Range>),
Block(Arc<Block>),
List(Vec<SpannedExpression>),
Table(Vec<SpannedExpression>, Vec<Vec<SpannedExpression>>),
Path(Box<Path>),
FilePath(PathBuf),
ExternalCommand(ExternalStringCommand),
Command,
Invocation(Arc<Block>),
Boolean(bool),
Garbage,
}Variants
Literal(Literal)Synthetic(Synthetic)List(Vec<SpannedExpression>)Table(Vec<SpannedExpression>, Vec<Vec<SpannedExpression>>)FilePath(PathBuf)ExternalCommand(ExternalStringCommand)Boolean(bool)Implementations
impl Expression[src]
impl Expression[src]pub fn integer(i: BigInt) -> Expression[src]
pub fn decimal(dec: BigDecimal) -> Expression[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 glob_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]
pub fn boolean(b: bool) -> Expression[src]
pub fn has_it_usage(&self) -> bool[src]
pub fn get_free_variables(
&self,
known_variables: &mut Vec<String>
) -> Vec<String>[src]
&self,
known_variables: &mut Vec<String>
) -> Vec<String>
Trait Implementations
impl Clone for Expression[src]
impl Clone for Expression[src]fn clone(&self) -> Expression[src]
fn clone(&self) -> Expression[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]Performs copy-assignment from source. Read more
impl Debug for Expression[src]
impl Debug for Expression[src]impl<'de> Deserialize<'de> for Expression[src]
impl<'de> Deserialize<'de> for Expression[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. Read more
impl Hash for Expression[src]
impl Hash for Expression[src]impl IntoSpanned for Expression[src]
impl IntoSpanned for Expression[src]impl Ord for Expression[src]
impl Ord for Expression[src]impl PartialEq<Expression> for Expression[src]
impl PartialEq<Expression> for Expression[src]fn eq(&self, other: &Expression) -> bool[src]
fn eq(&self, other: &Expression) -> bool[src]This method tests for self and other values to be equal, and is used
by ==. Read more
fn ne(&self, other: &Expression) -> bool[src]
fn ne(&self, other: &Expression) -> bool[src]This method tests for !=.
impl PartialOrd<Expression> for Expression[src]
impl PartialOrd<Expression> for Expression[src]fn partial_cmp(&self, other: &Expression) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &Expression) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl Serialize for Expression[src]
impl Serialize for Expression[src]impl ShellTypeName for Expression[src]
impl ShellTypeName for Expression[src]impl Eq 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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]pub fn equivalent(&self, key: &K) -> bool[src]
pub fn equivalent(&self, key: &K) -> bool[src]Compare self to key and return true if they are equal.
impl<T> SpannedItem for T[src]
impl<T> SpannedItem for T[src]impl<T> TaggedItem for T[src]
impl<T> TaggedItem for T[src]impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,