Struct hcl::structure::RawExpression  
source · [−]pub struct RawExpression(_);Expand description
A type that holds the value of a raw expression.
As of now, anthing that is not a null value, a boolean, number, string, array or object is treated as raw expression and is not further parsed. This includes conditionals, operations, function calls, for expressions and variable expressions.
Implementations
sourceimpl RawExpression
 
impl RawExpression
sourcepub fn new<E>(expr: E) -> RawExpression where
    E: Into<String>, 
 
pub fn new<E>(expr: E) -> RawExpression where
    E: Into<String>, 
Creates a new RawExpression from something that can be converted to a String.
sourcepub fn into_inner(self) -> String
 
pub fn into_inner(self) -> String
Consumes self and returns the RawExpression as a String. If you want to represent the
RawExpression as an interpolated string, use .to_string() instead.
Trait Implementations
sourceimpl Clone for RawExpression
 
impl Clone for RawExpression
sourcefn clone(&self) -> RawExpression
 
fn clone(&self) -> RawExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for RawExpression
 
impl Debug for RawExpression
sourceimpl<'de> Deserialize<'de> for RawExpression
 
impl<'de> Deserialize<'de> for RawExpression
sourcefn 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
sourceimpl Display for RawExpression
 
impl Display for RawExpression
sourceimpl From<&'_ str> for RawExpression
 
impl From<&'_ str> for RawExpression
sourceimpl<'a> From<Cow<'a, str>> for RawExpression
 
impl<'a> From<Cow<'a, str>> for RawExpression
sourceimpl From<RawExpression> for Expression
 
impl From<RawExpression> for Expression
sourcefn from(raw: RawExpression) -> Self
 
fn from(raw: RawExpression) -> Self
Converts to this type from the input type.
sourceimpl From<RawExpression> for String
 
impl From<RawExpression> for String
sourcefn from(expr: RawExpression) -> Self
 
fn from(expr: RawExpression) -> Self
Converts to this type from the input type.
sourceimpl From<String> for RawExpression
 
impl From<String> for RawExpression
sourceimpl Hash for RawExpression
 
impl Hash for RawExpression
sourceimpl<'de> IntoDeserializer<'de, Error> for RawExpression
 
impl<'de> IntoDeserializer<'de, Error> for RawExpression
type Deserializer = RawExpressionDeserializer
type Deserializer = RawExpressionDeserializer
The type of the deserializer being converted into.
sourcefn into_deserializer(self) -> Self::Deserializer
 
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
sourceimpl PartialEq<RawExpression> for RawExpression
 
impl PartialEq<RawExpression> for RawExpression
sourcefn eq(&self, other: &RawExpression) -> bool
 
fn eq(&self, other: &RawExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &RawExpression) -> bool
 
fn ne(&self, other: &RawExpression) -> bool
This method tests for !=.
sourceimpl Serialize for RawExpression
 
impl Serialize for RawExpression
impl Eq for RawExpression
impl StructuralEq for RawExpression
impl StructuralPartialEq for RawExpression
Auto Trait Implementations
impl RefUnwindSafe for RawExpression
impl Send for RawExpression
impl Sync for RawExpression
impl Unpin for RawExpression
impl UnwindSafe for RawExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
 
impl<Q, K> Equivalent<K> for Q where
    Q: Eq + ?Sized,
    K: Borrow<Q> + ?Sized, 
sourcefn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to key and return true if they are equal.