pub struct MethodParam<'a>(/* private fields */);Implementations§
Source§impl MethodParam<'_>
impl MethodParam<'_>
pub fn flags(&self) -> ParamAttributes
Sourcepub fn direction(&self) -> ParamDirection
pub fn direction(&self) -> ParamDirection
Returns the direction represented by the In and Out flags without applying type or
projection defaults.
Sourcepub fn is_optional(&self) -> bool
pub fn is_optional(&self) -> bool
Returns whether the ECMA-335 Optional flag is present.
Sourcepub fn is_reserved(&self) -> bool
pub fn is_reserved(&self) -> bool
Returns whether ReservedAttribute is present.
Sourcepub fn is_retval_attribute(&self) -> bool
pub fn is_retval_attribute(&self) -> bool
Returns whether RetValAttribute is present.
Sourcepub fn buffer_relationship(&self) -> Option<BufferRelationship>
pub fn buffer_relationship(&self) -> Option<BufferRelationship>
Returns the raw count or byte-size relationship encoded by Win32 metadata attributes.
This only decodes the attribute. Consumers remain responsible for validating signed values, parameter positions, element sizes, and whether a public slice or span is appropriate.
pub fn sequence(&self) -> u16
pub fn name(&self) -> &str
Trait Implementations§
Source§impl<'a> AsRow<'a> for MethodParam<'a>
impl<'a> AsRow<'a> for MethodParam<'a>
const TABLE: usize = 11
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
Source§impl<'a> Clone for MethodParam<'a>
impl<'a> Clone for MethodParam<'a>
Source§fn clone(&self) -> MethodParam<'a>
fn clone(&self) -> MethodParam<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for MethodParam<'a>
Source§impl Debug for MethodParam<'_>
impl Debug for MethodParam<'_>
impl<'a> Eq for MethodParam<'a>
Source§impl<'a> From<MethodParam<'a>> for HasAttribute<'a>
impl<'a> From<MethodParam<'a>> for HasAttribute<'a>
Source§fn from(from: MethodParam<'a>) -> Self
fn from(from: MethodParam<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for MethodParam<'a>
impl<'a> Hash for MethodParam<'a>
Source§impl<'a> Ord for MethodParam<'a>
impl<'a> Ord for MethodParam<'a>
Source§fn cmp(&self, other: &MethodParam<'a>) -> Ordering
fn cmp(&self, other: &MethodParam<'a>) -> Ordering
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> PartialEq for MethodParam<'a>
impl<'a> PartialEq for MethodParam<'a>
Source§impl<'a> PartialOrd for MethodParam<'a>
impl<'a> PartialOrd for MethodParam<'a>
impl<'a> StructuralPartialEq for MethodParam<'a>
Auto Trait Implementations§
impl<'a> Freeze for MethodParam<'a>
impl<'a> RefUnwindSafe for MethodParam<'a>
impl<'a> Send for MethodParam<'a>
impl<'a> Sync for MethodParam<'a>
impl<'a> Unpin for MethodParam<'a>
impl<'a> UnsafeUnpin for MethodParam<'a>
impl<'a> UnwindSafe for MethodParam<'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