pub struct Sig {
pub returns: Option<usize>,
pub params: Vec<Param>,
pub variadic: bool,
pub prototyped: bool,
}Expand description
What a function takes and gives back.
Fields§
§returns: Option<usize>§params: Vec<Param>The parameters in order.
variadic: boolWhether it ends in ....
prototyped: boolWhether the program wrote a parameter list rather than leaving it empty.
DW_AT_prototyped, and it is not the same question as whether the list is empty: int f()
says nothing about what f takes and int f(void) says it takes nothing, and a debugger
that could not tell them apart would offer to call the first with no arguments.
Trait Implementations§
impl Eq for Sig
impl StructuralPartialEq for Sig
Auto Trait Implementations§
impl Freeze for Sig
impl RefUnwindSafe for Sig
impl Send for Sig
impl Sync for Sig
impl Unpin for Sig
impl UnsafeUnpin for Sig
impl UnwindSafe for Sig
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.