pub struct FuncCall {
pub name: Identifier,
pub args: Vec<Expression>,
pub expand_final: bool,
}
Expand description
Represents a function call expression with zero or more arguments.
Fields
name: Identifier
The name of the function.
args: Vec<Expression>
The function arguments.
expand_final: bool
If true
, the final argument should be an array which will expand to be one argument per
element.
Implementations
sourceimpl FuncCall
impl FuncCall
sourcepub fn new<T>(name: T) -> FuncCallwhere
T: Into<Identifier>,
pub fn new<T>(name: T) -> FuncCallwhere
T: Into<Identifier>,
Creates a new FuncCall
for the function with given name.
sourcepub fn builder<T>(name: T) -> FuncCallBuilderwhere
T: Into<Identifier>,
pub fn builder<T>(name: T) -> FuncCallBuilderwhere
T: Into<Identifier>,
Creates a new FuncCallBuilder
for the function with given name.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for FuncCall
impl<'de> Deserialize<'de> for FuncCall
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 From<FuncCall> for Expression
impl From<FuncCall> for Expression
sourceimpl<'de> IntoDeserializer<'de, Error> for FuncCall
impl<'de> IntoDeserializer<'de, Error> for FuncCall
type Deserializer = MapAccessDeserializer<FuncCallAccess>
type Deserializer = MapAccessDeserializer<FuncCallAccess>
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.
impl Eq for FuncCall
impl StructuralEq for FuncCall
impl StructuralPartialEq for FuncCall
Auto Trait Implementations
impl RefUnwindSafe for FuncCall
impl Send for FuncCall
impl Sync for FuncCall
impl Unpin for FuncCall
impl UnwindSafe for FuncCall
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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.