pub struct __BindgenBitfieldUnit<Storage> { /* 私有字段 */ }实现§
源代码§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
源代码§impl<Storage> __BindgenBitfieldUnit<Storage>
impl<Storage> __BindgenBitfieldUnit<Storage>
pub fn get_bit(&self, index: usize) -> bool
pub unsafe fn raw_get_bit(this: *const Self, index: usize) -> bool
pub fn set_bit(&mut self, index: usize, val: bool)
pub unsafe fn raw_set_bit(this: *mut Self, index: usize, val: bool)
pub fn get(&self, bit_offset: usize, bit_width: u8) -> u64
pub unsafe fn raw_get( this: *const Self, bit_offset: usize, bit_width: u8, ) -> u64
pub fn set(&mut self, bit_offset: usize, bit_width: u8, val: u64)
pub unsafe fn raw_set( this: *mut Self, bit_offset: usize, bit_width: u8, val: u64, )
trait 实现§
源代码§impl<Storage: Clone> Clone for __BindgenBitfieldUnit<Storage>
impl<Storage: Clone> Clone for __BindgenBitfieldUnit<Storage>
源代码§fn clone(&self) -> __BindgenBitfieldUnit<Storage>
fn clone(&self) -> __BindgenBitfieldUnit<Storage>
Returns a duplicate of the value. 阅读更多
1.0.0 · 源代码§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source 执行拷贝赋值。 阅读更多源代码§impl<Storage: Debug> Debug for __BindgenBitfieldUnit<Storage>
impl<Storage: Debug> Debug for __BindgenBitfieldUnit<Storage>
源代码§impl<Storage: Default> Default for __BindgenBitfieldUnit<Storage>
impl<Storage: Default> Default for __BindgenBitfieldUnit<Storage>
源代码§fn default() -> __BindgenBitfieldUnit<Storage>
fn default() -> __BindgenBitfieldUnit<Storage>
返回类型的"默认值"。 阅读更多
源代码§impl<Storage: Hash> Hash for __BindgenBitfieldUnit<Storage>
impl<Storage: Hash> Hash for __BindgenBitfieldUnit<Storage>
源代码§impl<Storage: Ord> Ord for __BindgenBitfieldUnit<Storage>
impl<Storage: Ord> Ord for __BindgenBitfieldUnit<Storage>
源代码§fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
fn cmp(&self, other: &__BindgenBitfieldUnit<Storage>) -> Ordering
1.21.0 · 源代码§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. 阅读更多
源代码§impl<Storage: PartialEq> PartialEq for __BindgenBitfieldUnit<Storage>
impl<Storage: PartialEq> PartialEq for __BindgenBitfieldUnit<Storage>
源代码§impl<Storage: PartialOrd> PartialOrd for __BindgenBitfieldUnit<Storage>
impl<Storage: PartialOrd> PartialOrd for __BindgenBitfieldUnit<Storage>
impl<Storage: Copy> Copy for __BindgenBitfieldUnit<Storage>
impl<Storage: Eq> Eq for __BindgenBitfieldUnit<Storage>
impl<Storage> StructuralPartialEq for __BindgenBitfieldUnit<Storage>
自动 trait 实现§
impl<Storage> Freeze for __BindgenBitfieldUnit<Storage>where
Storage: Freeze,
impl<Storage> RefUnwindSafe for __BindgenBitfieldUnit<Storage>where
Storage: RefUnwindSafe,
impl<Storage> Send for __BindgenBitfieldUnit<Storage>where
Storage: Send,
impl<Storage> Sync for __BindgenBitfieldUnit<Storage>where
Storage: Sync,
impl<Storage> Unpin for __BindgenBitfieldUnit<Storage>where
Storage: Unpin,
impl<Storage> UnsafeUnpin for __BindgenBitfieldUnit<Storage>where
Storage: UnsafeUnpin,
impl<Storage> UnwindSafe for __BindgenBitfieldUnit<Storage>where
Storage: UnwindSafe,
blanket 实现§
源代码§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
源代码§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
从拥有的值可变地借用。 阅读更多