Enum air_parser::ast::ImmutableVariable
source · pub enum ImmutableVariable<'i> {
Scalar(Scalar<'i>),
CanonStream(CanonStream<'i>),
}
Expand description
A variable that could be either scalar or stream without lambda.
Variants§
Scalar(Scalar<'i>)
CanonStream(CanonStream<'i>)
Implementations§
Trait Implementations§
source§impl<'i> Clone for ImmutableVariable<'i>
impl<'i> Clone for ImmutableVariable<'i>
source§fn clone(&self) -> ImmutableVariable<'i>
fn clone(&self) -> ImmutableVariable<'i>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'i> Debug for ImmutableVariable<'i>
impl<'i> Debug for ImmutableVariable<'i>
source§impl<'de: 'i, 'i> Deserialize<'de> for ImmutableVariable<'i>
impl<'de: 'i, 'i> Deserialize<'de> for ImmutableVariable<'i>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ImmutableVariable<'_>
impl Display for ImmutableVariable<'_>
source§impl<'i> PartialEq<ImmutableVariable<'i>> for ImmutableVariable<'i>
impl<'i> PartialEq<ImmutableVariable<'i>> for ImmutableVariable<'i>
source§fn eq(&self, other: &ImmutableVariable<'i>) -> bool
fn eq(&self, other: &ImmutableVariable<'i>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.