#[repr(transparent)]struct BlockHeader(usize);
Tuple Fields§
§0: usize
Implementations§
Source§impl BlockHeader
impl BlockHeader
Source§impl BlockHeader
impl BlockHeader
const SIZE_MASK: usize = 18_446_744_073_709_551_614usize
fn data_size(self) -> usize
fn set_data_size(&mut self, value: usize)
fn data_ptr(self: Pin<&Self>) -> *mut u8
fn is_end(self) -> bool
fn next_ptr(self: &Pin<&Self>) -> Option<*mut Self>
fn next(self: Pin<&Self>) -> Option<Pin<&Self>>
fn next_mut<'a>(self: &Pin<&'a mut Self>) -> Option<Pin<&'a mut Self>>
fn can_fit(self: Pin<&Self>, layout: Layout) -> bool
Trait Implementations§
Source§impl Bitfield<usize> for BlockHeader
impl Bitfield<usize> for BlockHeader
Source§impl Clone for BlockHeader
impl Clone for BlockHeader
Source§fn clone(&self) -> BlockHeader
fn clone(&self) -> BlockHeader
Returns a copy of the value. Read more
1.0.0 · 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 BlockHeader
impl Debug for BlockHeader
Source§impl Default for BlockHeader
impl Default for BlockHeader
Source§fn default() -> BlockHeader
fn default() -> BlockHeader
Returns the “default value” for a type. Read more
Source§impl From<BlockHeader> for usize
impl From<BlockHeader> for usize
Source§fn from(val: BlockHeader) -> Self
fn from(val: BlockHeader) -> Self
Converts to this type from the input type.
Source§impl From<usize> for BlockHeader
impl From<usize> for BlockHeader
Source§impl PartialEq for BlockHeader
impl PartialEq for BlockHeader
impl Copy for BlockHeader
impl Eq for BlockHeader
impl StructuralPartialEq for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
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