pub struct FunctionType {
pub params: Vec<FunctionParam>,
pub return_type: Box<TypeAnnotation>,
pub type_parameters: Option<TypeParameters>,
pub span: Span,
}Fields§
§params: Vec<FunctionParam>§return_type: Box<TypeAnnotation>§type_parameters: Option<TypeParameters>§span: SpanTrait Implementations§
Source§impl Clone for FunctionType
impl Clone for FunctionType
Source§fn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
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 moreAuto Trait Implementations§
impl !Send for FunctionType
impl !Sync for FunctionType
impl Freeze for FunctionType
impl RefUnwindSafe for FunctionType
impl Unpin for FunctionType
impl UnsafeUnpin for FunctionType
impl UnwindSafe for FunctionType
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