pub struct FunctionLikeParameterDefaultValueReflection {
pub type_reflection: TypeReflection,
pub span: Span,
}Expand description
Represents the default value of a function-like parameter, including its inferred type and the source code span where it is defined.
Fields§
§type_reflection: TypeReflectionThe inferred type of the default value. This type is determined based on the default value itself.
span: SpanThe span in the source code where the default value is located.
Trait Implementations§
Source§impl Clone for FunctionLikeParameterDefaultValueReflection
impl Clone for FunctionLikeParameterDefaultValueReflection
Source§fn clone(&self) -> FunctionLikeParameterDefaultValueReflection
fn clone(&self) -> FunctionLikeParameterDefaultValueReflection
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 FunctionLikeParameterDefaultValueReflection
impl<'de> Deserialize<'de> for FunctionLikeParameterDefaultValueReflection
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 FunctionLikeParameterDefaultValueReflection
impl HasSource for FunctionLikeParameterDefaultValueReflection
Source§fn source(&self) -> SourceIdentifier
fn source(&self) -> SourceIdentifier
Returns the source identifier of the file containing this default value.
Source§impl Ord for FunctionLikeParameterDefaultValueReflection
impl Ord for FunctionLikeParameterDefaultValueReflection
Source§fn cmp(&self, other: &FunctionLikeParameterDefaultValueReflection) -> Ordering
fn cmp(&self, other: &FunctionLikeParameterDefaultValueReflection) -> 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 FunctionLikeParameterDefaultValueReflection
impl PartialEq for FunctionLikeParameterDefaultValueReflection
Source§fn eq(&self, other: &FunctionLikeParameterDefaultValueReflection) -> bool
fn eq(&self, other: &FunctionLikeParameterDefaultValueReflection) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for FunctionLikeParameterDefaultValueReflection
impl PartialOrd for FunctionLikeParameterDefaultValueReflection
impl Eq for FunctionLikeParameterDefaultValueReflection
impl StructuralPartialEq for FunctionLikeParameterDefaultValueReflection
Auto Trait Implementations§
impl Freeze for FunctionLikeParameterDefaultValueReflection
impl RefUnwindSafe for FunctionLikeParameterDefaultValueReflection
impl Send for FunctionLikeParameterDefaultValueReflection
impl Sync for FunctionLikeParameterDefaultValueReflection
impl Unpin for FunctionLikeParameterDefaultValueReflection
impl UnwindSafe for FunctionLikeParameterDefaultValueReflection
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