pub struct DefTyView { /* private fields */ }Expand description
Decoded view of a DefTyEntry row.
Implementations§
Source§impl DefTyView
impl DefTyView
pub fn new(raw: DefTyEntry) -> Self
pub const fn def_index(&self) -> u32
pub const fn ty(&self) -> TyId
pub const fn parent_def_index(&self) -> Option<u32>
pub const fn variant_idx(&self) -> Option<u16>
pub const fn ctor_shape(&self) -> CtorShape
pub const fn flags(&self) -> u8
pub const fn is_non_exhaustive(&self) -> bool
pub const fn is_mut_static(&self) -> bool
pub const fn is_unsafe_static(&self) -> bool
pub const fn is_fundamental(&self) -> bool
pub const fn is_default_assoc_ty(&self) -> bool
Trait Implementations§
impl Copy for DefTyView
impl Eq for DefTyView
impl StructuralPartialEq for DefTyView
Auto Trait Implementations§
impl Forget for DefTyView
impl Freeze for DefTyView
impl Move for DefTyView
impl RefUnwindSafe for DefTyView
impl Send for DefTyView
impl Sync for DefTyView
impl Unpin for DefTyView
impl UnsafeUnpin for DefTyView
impl UnwindSafe for DefTyView
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