pub struct FunctionType {
pub params: Vec<FunctionParameter>,
pub bounds: Vec<Bound>,
pub return_type: Box<Type>,
}Fields§
§params: Vec<FunctionParameter>§bounds: Vec<Bound>§return_type: Box<Type>Implementations§
Source§impl FunctionType
impl FunctionType
pub fn remove_receiver(&mut self) -> Type
pub fn without_receiver(&self) -> Type
pub fn rebuild( &self, params: Vec<FunctionParameter>, bounds: Vec<Bound>, return_type: Box<Type>, ) -> Type
Trait Implementations§
Source§impl Clone for FunctionType
impl Clone for FunctionType
Auto Trait Implementations§
impl Forget for FunctionType
impl Freeze for FunctionTypewhere
*const u8 is !null: Freeze,
PhantomData<FunctionParameter>: Freeze,
PhantomData<Bound>: Freeze,
*const Type is !null: Freeze,
PhantomData<Type>: Freeze,
impl Move for FunctionType
impl RefUnwindSafe for FunctionType
impl Send for FunctionType
impl Sync for FunctionType
impl Unpin for FunctionType
impl UnsafeUnpin for FunctionTypewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<FunctionParameter>: UnsafeUnpin,
PhantomData<Bound>: UnsafeUnpin,
*const Type is !null: UnsafeUnpin,
PhantomData<Type>: UnsafeUnpin,
impl UnwindSafe for FunctionTypewhere
RawVecInner: UnwindSafe,
Arc<Box<[Type]>>: UnwindSafe,
NonNull<u8>: UnwindSafe,
Arc<FunctionType>: UnwindSafe,
BoxRaw<Type>: UnwindSafe,
Arc<Spelling>: UnwindSafe,
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