pub struct FunctionExpression {
pub base: BaseNode,
pub params: Vec<PatternLike>,
pub body: BlockStatement,
pub id: Option<Identifier>,
pub generator: bool,
pub is_async: bool,
pub return_type: Option<Box<Value>>,
pub type_parameters: Option<Box<Value>>,
pub predicate: Option<Box<Value>>,
}Fields§
§base: BaseNode§params: Vec<PatternLike>§body: BlockStatement§id: Option<Identifier>§generator: bool§is_async: bool§return_type: Option<Box<Value>>§type_parameters: Option<Box<Value>>§predicate: Option<Box<Value>>Trait Implementations§
Source§impl Clone for FunctionExpression
impl Clone for FunctionExpression
Source§fn clone(&self) -> FunctionExpression
fn clone(&self) -> FunctionExpression
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FunctionExpression
impl Debug for FunctionExpression
Source§impl<'de> Deserialize<'de> for FunctionExpression
impl<'de> Deserialize<'de> for FunctionExpression
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
Auto Trait Implementations§
impl Freeze for FunctionExpression
impl RefUnwindSafe for FunctionExpression
impl Send for FunctionExpression
impl Sync for FunctionExpression
impl Unpin for FunctionExpression
impl UnsafeUnpin for FunctionExpression
impl UnwindSafe for FunctionExpression
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