pub struct MethodDef<'a>(/* private fields */);Implementations§
Source§impl<'a> MethodDef<'a>
impl<'a> MethodDef<'a>
pub fn impl_flags(&self) -> MethodImplAttributes
pub fn flags(&self) -> MethodAttributes
pub fn name(&self) -> &'a str
pub fn signature(&self, generics: &[Type]) -> Signature
Sourcepub fn params(&self) -> RowIterator<'a, MethodParam<'a>> ⓘ
pub fn params(&self) -> RowIterator<'a, MethodParam<'a>> ⓘ
Iterates the method’s Param rows in physical table order.
Use Self::params_by_sequence when associating rows with signature positions.
Sourcepub fn params_by_sequence(
&self,
parameter_count: usize,
) -> Result<MethodParamMap<'a>, MethodParamSequenceError>
pub fn params_by_sequence( &self, parameter_count: usize, ) -> Result<MethodParamMap<'a>, MethodParamSequenceError>
Associates Param rows with parameter_count signature positions.
Sequence zero is returned separately, nonzero sequences are one-based, and missing rows
remain None. Sparse and out-of-order rows are valid. Duplicate sequences and nonzero
sequences outside the signature are reported as errors. If several rows are invalid, the
first invalid row in physical table order is reported.
pub fn parent(&self) -> MemberRefParent<'a>
pub fn impl_map(&self) -> Option<ImplMap<'a>>
pub fn calling_convention(&self) -> &'static str
Trait Implementations§
Source§impl<'a> AsRow<'a> for MethodDef<'a>
impl<'a> AsRow<'a> for MethodDef<'a>
const TABLE: usize = 10
fn to_row(&self) -> Row<'a>
fn from_row(row: Row<'a>) -> Self
fn index(&self) -> &'a Index
fn file(&self) -> &'a File
fn pos(&self) -> usize
fn usize(&self, column: usize) -> usize
fn str(&self, column: usize) -> &'a str
fn row<R: AsRow<'a>>(&self, column: usize) -> R
fn decode<T: Decode<'a>>(&self, column: usize) -> T
fn blob(&self, column: usize) -> Blob<'a>
fn list<R: AsRow<'a>>(&self, column: usize) -> RowIterator<'a, R> ⓘ
fn equal_range<L: AsRow<'a>>( &self, column: usize, value: usize, ) -> RowIterator<'a, L> ⓘ
fn parent_row<P: AsRow<'a>>(&self, column: usize) -> P
impl<'a> Copy for MethodDef<'a>
impl<'a> Eq for MethodDef<'a>
Source§impl<'a> From<MethodDef<'a>> for AttributeType<'a>
impl<'a> From<MethodDef<'a>> for AttributeType<'a>
Source§impl<'a> From<MethodDef<'a>> for HasAttribute<'a>
impl<'a> From<MethodDef<'a>> for HasAttribute<'a>
Source§impl<'a> From<MethodDef<'a>> for MemberForwarded<'a>
impl<'a> From<MethodDef<'a>> for MemberForwarded<'a>
Source§impl<'a> From<MethodDef<'a>> for TypeOrMethodDef<'a>
impl<'a> From<MethodDef<'a>> for TypeOrMethodDef<'a>
Source§impl<'a> Ord for MethodDef<'a>
impl<'a> Ord for MethodDef<'a>
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<'a> PartialOrd for MethodDef<'a>
impl<'a> PartialOrd for MethodDef<'a>
impl<'a> StructuralPartialEq for MethodDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for MethodDef<'a>
impl<'a> RefUnwindSafe for MethodDef<'a>
impl<'a> Send for MethodDef<'a>
impl<'a> Sync for MethodDef<'a>
impl<'a> Unpin for MethodDef<'a>
impl<'a> UnsafeUnpin for MethodDef<'a>
impl<'a> UnwindSafe for MethodDef<'a>
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