NodeId

Trait NodeId 

Source
pub trait NodeId: Decode {
    // Required methods
    fn to_u64(self) -> u64;
    fn from_u64(value: u64) -> Self;
}

Required Methods§

Source

fn to_u64(self) -> u64

Source

fn from_u64(value: u64) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl NodeId for u64

Source§

fn from_u64(value: u64) -> Self

Source§

fn to_u64(self) -> u64

Source§

impl<const LEN: usize> NodeId for ArbNum<LEN, u64>

Source§

fn from_u64(value: u64) -> Self

Source§

fn to_u64(self) -> u64

Implementors§