Struct php_parser_rs::parser::ast::functions::MethodParameter
source · pub struct MethodParameter {
pub start: Span,
pub end: Span,
pub name: SimpleVariable,
pub attributes: Vec<AttributeGroup>,
pub type: Option<Type>,
pub variadic: bool,
pub default: Option<Expression>,
pub modifiers: PromotedPropertyModifierGroup,
pub by_ref: bool,
}
Fields§
§start: Span
§end: Span
§name: SimpleVariable
§attributes: Vec<AttributeGroup>
§type: Option<Type>
§variadic: bool
§default: Option<Expression>
§modifiers: PromotedPropertyModifierGroup
§by_ref: bool
Trait Implementations§
source§impl Clone for MethodParameter
impl Clone for MethodParameter
source§fn clone(&self) -> MethodParameter
fn clone(&self) -> MethodParameter
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 Debug for MethodParameter
impl Debug for MethodParameter
source§impl<'de> Deserialize<'de> for MethodParameter
impl<'de> Deserialize<'de> for MethodParameter
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