pub struct TypeAnnotationFunctionParameter {
pub decorators: Vec<Decorator>,
pub name: Option<WithComment<VariableField>>,
pub type_annotation: TypeAnnotation,
pub is_optional: bool,
pub position: Span,
}
Fields§
§decorators: Vec<Decorator>
§name: Option<WithComment<VariableField>>
Ooh nice optional
type_annotation: TypeAnnotation
§is_optional: bool
§position: Span
Trait Implementations§
Source§impl Clone for TypeAnnotationFunctionParameter
impl Clone for TypeAnnotationFunctionParameter
Source§fn clone(&self) -> TypeAnnotationFunctionParameter
fn clone(&self) -> TypeAnnotationFunctionParameter
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 PartialEq for TypeAnnotationFunctionParameter
impl PartialEq for TypeAnnotationFunctionParameter
Source§fn eq(&self, other: &TypeAnnotationFunctionParameter) -> bool
fn eq(&self, other: &TypeAnnotationFunctionParameter) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.Source§impl SelfRustTokenize for TypeAnnotationFunctionParameter
impl SelfRustTokenize for TypeAnnotationFunctionParameter
fn append_to_token_stream(&self, token_stream: &mut TokenStream)
Source§fn to_tokens(&self) -> TokenStream
fn to_tokens(&self) -> TokenStream
Returns the tokens used to construct self
impl StructuralPartialEq for TypeAnnotationFunctionParameter
Auto Trait Implementations§
impl Freeze for TypeAnnotationFunctionParameter
impl RefUnwindSafe for TypeAnnotationFunctionParameter
impl Send for TypeAnnotationFunctionParameter
impl Sync for TypeAnnotationFunctionParameter
impl Unpin for TypeAnnotationFunctionParameter
impl UnwindSafe for TypeAnnotationFunctionParameter
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