pub struct FuncCall {
pub name: FuncName,
pub args: Vec<Expression>,
pub expand_final: bool,
}Expand description
Represents a function call expression with zero or more arguments.
Fields§
§name: FuncNameThe function name.
args: Vec<Expression>The function arguments.
expand_final: boolIf true, the final argument should be an array which will expand to be one argument per
element.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for FuncCall
impl<'de> Deserialize<'de> for FuncCall
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 Evaluate for FuncCall
impl Evaluate for FuncCall
source§fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
fn evaluate(&self, ctx: &Context<'_>) -> EvalResult<Self::Output>
Recursively evaluates all HCL templates and expressions in the implementing type using the
variables and functions declared in the
Context. Read moresource§fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
fn evaluate_in_place(&mut self, ctx: &Context<'_>) -> EvalResult<(), Errors>
Recursively tries to evaluate all nested expressions in place. Read more
source§impl Format for FuncCall
impl Format for FuncCall
source§fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
fn format<W>(&self, fmt: &mut Formatter<'_, W>) -> Result<()>where
W: Write,
Formats a HCL structure using a formatter and writes the result to the provided writer. Read more
source§impl From<FuncCall> for Expression
impl From<FuncCall> for Expression
source§impl<'de> IntoDeserializer<'de, Error> for FuncCall
impl<'de> IntoDeserializer<'de, Error> for FuncCall
source§type Deserializer = MapAccessDeserializer<FuncCallAccess>
type Deserializer = MapAccessDeserializer<FuncCallAccess>
The type of the deserializer being converted into.
source§fn into_deserializer(self) -> Self::Deserializer
fn into_deserializer(self) -> Self::Deserializer
Convert this value into a deserializer.
impl Eq for FuncCall
impl StructuralPartialEq for FuncCall
Auto Trait Implementations§
impl Freeze for FuncCall
impl RefUnwindSafe for FuncCall
impl Send for FuncCall
impl Sync for FuncCall
impl Unpin for FuncCall
impl UnwindSafe for FuncCall
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.