pub struct FunctionType {
pub arrow: Token,
pub type_name: Token,
pub is_array: bool,
pub is_nullable: bool,
}Expand description
Represents a function type annotation in the AST.
A function type includes an arrow (->) and the return type.
Fields§
§arrow: TokenThe token representing the arrow (->) in the function type.
type_name: TokenThe token representing the return type.
is_array: boolIs this type an array?
is_nullable: boolIs nullable?
Implementations§
Source§impl FunctionType
impl FunctionType
Trait Implementations§
Source§impl Clone for FunctionType
impl Clone for FunctionType
Source§fn clone(&self) -> FunctionType
fn clone(&self) -> FunctionType
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 FunctionType
impl Debug for FunctionType
Source§impl PartialEq for FunctionType
impl PartialEq for FunctionType
impl StructuralPartialEq for FunctionType
Auto Trait Implementations§
impl Freeze for FunctionType
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)