#[repr(transparent)]pub struct VTableEntryFlags(pub u8);Expand description
Bitfield for VTableEntry::Compound — which of the three rewriting
shapes apply to this method.
Plain u8 bitflags (not the bitflags crate) to keep the dep tree
small. Helpers: is_boxed_return(), is_self_arg(), is_generic().
Tuple Fields§
§0: u8Implementations§
Source§impl VTableEntryFlags
impl VTableEntryFlags
pub const BOXED_RETURN: u8 = 0b0000_0001
pub const SELF_ARG: u8 = 0b0000_0010
pub const GENERIC: u8 = 0b0000_0100
pub const fn empty() -> Self
pub const fn from_bits(bits: u8) -> Self
pub const fn bits(self) -> u8
pub const fn is_boxed_return(self) -> bool
pub const fn is_self_arg(self) -> bool
pub const fn is_generic(self) -> bool
pub fn set(&mut self, flag: u8)
Trait Implementations§
Source§impl Clone for VTableEntryFlags
impl Clone for VTableEntryFlags
Source§fn clone(&self) -> VTableEntryFlags
fn clone(&self) -> VTableEntryFlags
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 moreSource§impl Debug for VTableEntryFlags
impl Debug for VTableEntryFlags
Source§impl Hash for VTableEntryFlags
impl Hash for VTableEntryFlags
Source§impl PartialEq for VTableEntryFlags
impl PartialEq for VTableEntryFlags
Source§fn eq(&self, other: &VTableEntryFlags) -> bool
fn eq(&self, other: &VTableEntryFlags) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VTableEntryFlags
impl Eq for VTableEntryFlags
impl StructuralPartialEq for VTableEntryFlags
Auto Trait Implementations§
impl Freeze for VTableEntryFlags
impl RefUnwindSafe for VTableEntryFlags
impl Send for VTableEntryFlags
impl Sync for VTableEntryFlags
impl Unpin for VTableEntryFlags
impl UnsafeUnpin for VTableEntryFlags
impl UnwindSafe for VTableEntryFlags
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