pub struct FunctionTy {
pub matching_source: Fragment,
pub param_tys: Vec<Type>,
pub return_ty: Option<Box<Type>>,
}Available on crate feature
ast-models only.Expand description
A function type signature, such as func(u8, u8) -> bool.
Fields§
§matching_source: FragmentThe matching source code of the type signature.
param_tys: Vec<Type>The types of the function’s parameters, in order.
return_ty: Option<Box<Type>>The return type of the function, if it has one.
Trait Implementations§
Source§impl Clone for FunctionTy
impl Clone for FunctionTy
Source§impl Debug for FunctionTy
impl Debug for FunctionTy
Source§impl PartialEq for FunctionTy
impl PartialEq for FunctionTy
impl StructuralPartialEq for FunctionTy
Auto Trait Implementations§
impl Forget for FunctionTy
impl Freeze for FunctionTy
impl RefUnwindSafe for FunctionTy
impl Send for FunctionTy
impl Sync for FunctionTy
impl Unpin for FunctionTy
impl UnsafeUnpin for FunctionTy
impl UnwindSafe for FunctionTy
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more