Trait PointExt

pub trait PointExt: Point {
    // Provided methods
    fn get_recv(&self) -> U64 { ... }
    fn hash(&self) -> B64<[u8; 32]> { ... }
    fn xheader(&self) -> XHeader { ... }
    fn size(&self) -> u16 { ... }
    fn free_space(&self) -> u16 { ... }
    fn as_netparts(&self) -> PointParts<'_> 
       where Self: Sized { ... }
    fn to_default_str(&self) -> String { ... }
    fn as_dyn(&self) -> &dyn Point
       where Self: Sized { ... }
}
Expand description

Utilities for Point

Provided Methods§

fn get_recv(&self) -> U64

fn hash(&self) -> B64<[u8; 32]>

fn xheader(&self) -> XHeader

fn size(&self) -> u16

serialized size ( including padding )

fn free_space(&self) -> u16

fn as_netparts(&self) -> PointParts<'_>
where Self: Sized,

fn to_default_str(&self) -> String

fn as_dyn(&self) -> &dyn Point
where Self: Sized,

Implementors§

§

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