#[repr(C)]pub struct FnSigEntry {
pub def_index: u32,
pub inputs_start: u32,
pub inputs_len: u16,
pub flags: u8,
pub abi: u8,
pub output: u32,
}Expand description
Structured function or method signature (16 bytes, align 4), sorted ascending by def_index.
Fields§
§def_index: u320-based index into the defs section (reader.definitions()[def_index as usize]).
inputs_start: u32Start index of input parameter TyId words in ty_args.
inputs_len: u16Number of input parameters (including receiver when FN_FLAG_HAS_SELF is set).
flags: u8Bitmask of FN_FLAG_UNSAFE | FN_FLAG_VARIADIC | FN_FLAG_ASYNC | FN_FLAG_CONST | FN_FLAG_HAS_SELF.
abi: u8ABI category (FnAbiKind as u8).
output: u32Return type TyId in ty_entries.
Implementations§
Source§impl FnSigEntry
impl FnSigEntry
Trait Implementations§
Source§impl Clone for FnSigEntry
impl Clone for FnSigEntry
impl Copy for FnSigEntry
Source§impl Debug for FnSigEntry
impl Debug for FnSigEntry
Source§impl Default for FnSigEntry
impl Default for FnSigEntry
impl Eq for FnSigEntry
Source§impl Hash for FnSigEntry
impl Hash for FnSigEntry
Source§impl PartialEq for FnSigEntry
impl PartialEq for FnSigEntry
impl StructuralPartialEq for FnSigEntry
Auto Trait Implementations§
impl Forget for FnSigEntry
impl Freeze for FnSigEntry
impl Move for FnSigEntry
impl RefUnwindSafe for FnSigEntry
impl Send for FnSigEntry
impl Sync for FnSigEntry
impl Unpin for FnSigEntry
impl UnsafeUnpin for FnSigEntry
impl UnwindSafe for FnSigEntry
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