pub struct Signature {
pub name: String,
pub params: Vec<Parameter>,
pub ret_ty: Option<MirType>,
}Expand description
Function signature
Fields§
§name: StringFunction name
params: Vec<Parameter>Parameters (in order)
ret_ty: Option<MirType>Return type (None for void)
Implementations§
Trait Implementations§
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl Freeze for Signature
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnsafeUnpin for Signature
impl UnwindSafe for Signature
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