pub struct FnTy {
pub is_async: bool,
pub params: Vec<Ty>,
pub ret: Ty,
}Expand description
A function type: fn(Int) -> Int, async fn() -> Result<Unit, Error>.
Fields§
§is_async: bool§params: Vec<Ty>§ret: TyTrait Implementations§
impl StructuralPartialEq for FnTy
Auto Trait Implementations§
impl Freeze for FnTy
impl RefUnwindSafe for FnTy
impl Send for FnTy
impl Sync for FnTy
impl Unpin for FnTy
impl UnsafeUnpin for FnTy
impl UnwindSafe for FnTy
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