pub struct TypeDef<'a>(/* private fields */);Implementations§
Source§impl TypeDef<'_>
impl TypeDef<'_>
pub fn flags(&self) -> TypeAttributes
pub fn name(&self) -> &str
pub fn namespace(&self) -> &str
pub fn extends(&self) -> Option<TypeDefOrRef<'_>>
pub fn fields(&self) -> RowIterator<'_, Field<'_>> ⓘ
pub fn methods(&self) -> RowIterator<'_, MethodDef<'_>> ⓘ
pub fn generic_params(&self) -> RowIterator<'_, GenericParam<'_>> ⓘ
pub fn interface_impls(&self) -> RowIterator<'_, InterfaceImpl<'_>> ⓘ
pub fn class_layout(&self) -> Option<ClassLayout<'_>>
pub fn category(&self) -> TypeCategory
Trait Implementations§
Source§impl<'a> AsRow<'a> for TypeDef<'a>
impl<'a> AsRow<'a> for TypeDef<'a>
const TABLE: usize = 8usize
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>>(&'a self, column: usize) -> P
Source§impl<'a> From<TypeDef<'a>> for HasAttribute<'a>
impl<'a> From<TypeDef<'a>> for HasAttribute<'a>
Source§impl<'a> From<TypeDef<'a>> for MemberRefParent<'a>
impl<'a> From<TypeDef<'a>> for MemberRefParent<'a>
Source§impl<'a> From<TypeDef<'a>> for TypeDefOrRef<'a>
impl<'a> From<TypeDef<'a>> for TypeDefOrRef<'a>
Source§impl<'a> From<TypeDef<'a>> for TypeOrMethodDef<'a>
impl<'a> From<TypeDef<'a>> for TypeOrMethodDef<'a>
Source§impl<'a> Ord for TypeDef<'a>
impl<'a> Ord for TypeDef<'a>
1.21.0 · 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
Source§impl<'a> PartialOrd for TypeDef<'a>
impl<'a> PartialOrd for TypeDef<'a>
impl<'a> Copy for TypeDef<'a>
impl<'a> Eq for TypeDef<'a>
impl<'a> StructuralPartialEq for TypeDef<'a>
Auto Trait Implementations§
impl<'a> Freeze for TypeDef<'a>
impl<'a> RefUnwindSafe for TypeDef<'a>
impl<'a> Send for TypeDef<'a>
impl<'a> Sync for TypeDef<'a>
impl<'a> Unpin for TypeDef<'a>
impl<'a> UnwindSafe for TypeDef<'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