#[repr(C, align(4))]
pub struct PointPtr { /* private fields */ }
Expand description

Flat u8 repr of a Point

Implementations§

source§

impl PointPtr

source

pub fn thin_point(&self) -> &PointThinPtr

source

pub unsafe fn from_bytes_unchecked(b: &[u8]) -> &PointPtr

Safety

should be well aligned valid netpktbytes.

source

pub fn internal_consitent_length(&self) -> Result<usize, Error>

source

pub fn pkt_bytes(&self) -> &[u8]

Trait Implementations§

source§

impl Debug for PointPtr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Point for PointPtr

source§

fn data(&self) -> &[u8]

source§

fn tail(&self) -> Option<Tail<'_>>

source§

fn keypoint_header(&self) -> Option<&KeyPointHeader>

source§

fn linkpoint_header(&self) -> Option<&LinkPointHeader>

Return a LinkPointHeader, works for both key and link points.
source§

fn parts(&self) -> PointParts<'_>

The rusty enum repr of a point.
source§

fn point_header_ref(&self) -> &PointHeader

source§

fn pkt_segments(&self) -> ByteSegments<'_>

A utility function to translate this format into bytes for hashing & io
source§

fn fields(&self) -> PointFields<'_>

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> PointExt for Twhere T: Point + ?Sized,