pub struct FunctionLikeParameterReflection {
pub attribute_reflections: Vec<AttributeReflection>,
pub type_reflection: Option<TypeReflection>,
pub name: StringIdentifier,
pub is_variadic: bool,
pub is_passed_by_reference: bool,
pub is_promoted_property: bool,
pub default: Option<FunctionLikeParameterDefaultValueReflection>,
pub span: Span,
}Expand description
Represents a parameter in a function-like entity (such as a function or method), including its type, attributes, and various properties.
Fields§
§attribute_reflections: Vec<AttributeReflection>Attributes associated with the parameter, such as annotations or metadata.
type_reflection: Option<TypeReflection>The type of the parameter, if specified.
name: StringIdentifierThe name identifier of the parameter.
is_variadic: boolIndicates whether the parameter accepts a variable number of arguments.
is_passed_by_reference: boolIndicates whether the parameter is passed by reference.
is_promoted_property: boolIndicates whether the parameter promotes a property in a constructor, typically used in PHP class constructors.
default: Option<FunctionLikeParameterDefaultValueReflection>The default value of the parameter, if any, including its type and span in the source code.
span: SpanThe span of the parameter in the source code.
Trait Implementations§
Source§impl Clone for FunctionLikeParameterReflection
impl Clone for FunctionLikeParameterReflection
Source§fn clone(&self) -> FunctionLikeParameterReflection
fn clone(&self) -> FunctionLikeParameterReflection
Returns a duplicate 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<'de> Deserialize<'de> for FunctionLikeParameterReflection
impl<'de> Deserialize<'de> for FunctionLikeParameterReflection
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 HasSource for FunctionLikeParameterReflection
impl HasSource for FunctionLikeParameterReflection
Source§fn source(&self) -> SourceIdentifier
fn source(&self) -> SourceIdentifier
Returns the source identifier of the file containing this parameter.
Source§impl Ord for FunctionLikeParameterReflection
impl Ord for FunctionLikeParameterReflection
Source§fn cmp(&self, other: &FunctionLikeParameterReflection) -> Ordering
fn cmp(&self, other: &FunctionLikeParameterReflection) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for FunctionLikeParameterReflection
impl PartialEq for FunctionLikeParameterReflection
Source§fn eq(&self, other: &FunctionLikeParameterReflection) -> bool
fn eq(&self, other: &FunctionLikeParameterReflection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FunctionLikeParameterReflection
impl PartialOrd for FunctionLikeParameterReflection
impl Eq for FunctionLikeParameterReflection
impl StructuralPartialEq for FunctionLikeParameterReflection
Auto Trait Implementations§
impl Freeze for FunctionLikeParameterReflection
impl RefUnwindSafe for FunctionLikeParameterReflection
impl Send for FunctionLikeParameterReflection
impl Sync for FunctionLikeParameterReflection
impl Unpin for FunctionLikeParameterReflection
impl UnwindSafe for FunctionLikeParameterReflection
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