Skip to navigation

Struct Diagnostic Number

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct DiagnosticNumber(/* private fields */);

Unsigned diagnostic integer serialized losslessly as a decimal string.

Implementations

impl DiagnosticNumber

impl DiagnosticNumber

new

pub const fn new(value: u64) -> DiagnosticNumber

Construct a diagnostic integer without losing precision.

get

pub const fn get(self) -> u64

Return the complete Rust integer value.

Trait Implementations

impl Clone for DiagnosticNumber

impl Clone for DiagnosticNumber

clone

fn clone(&self) -> DiagnosticNumber

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for DiagnosticNumber

impl Debug for DiagnosticNumber

fmt

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

impl Default for DiagnosticNumber

impl Default for DiagnosticNumber

default

fn default() -> DiagnosticNumber

impl<'de> Deserialize<'de> for DiagnosticNumber

impl<'de> Deserialize<'de> for DiagnosticNumber

deserialize

fn deserialize<D>(
    deserializer: D,
) -> Result<DiagnosticNumber, <D as Deserializer<'de>>::Error>where
    D: Deserializer<'de>,

impl Display for DiagnosticNumber

impl Display for DiagnosticNumber

fmt

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

impl From<u64> for DiagnosticNumber

impl From<u64> for DiagnosticNumber

from

fn from(value: u64) -> DiagnosticNumber

impl Hash for DiagnosticNumber

impl Hash for DiagnosticNumber

hash

fn hash<__H>(&self, state: &mut __H)where
    __H: Hasher,

hash_slice

fn hash_slice<H>(data: &[Self], state: &mut H)where
    H: Hasher,
    Self: Sized,

impl Ord for DiagnosticNumber

impl Ord for DiagnosticNumber

cmp

fn cmp(&self, other: &DiagnosticNumber) -> Ordering

max

fn max(self, other: Self) -> Selfwhere
    Self: Sized,

min

fn min(self, other: Self) -> Selfwhere
    Self: Sized,

clamp

fn clamp(self, min: Self, max: Self) -> Selfwhere
    Self: Sized,

impl PartialEq for DiagnosticNumber

impl PartialEq for DiagnosticNumber

eq

fn eq(&self, other: &DiagnosticNumber) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl PartialOrd for DiagnosticNumber

impl PartialOrd for DiagnosticNumber

partial_cmp

fn partial_cmp(&self, other: &DiagnosticNumber) -> Option<Ordering>

lt

fn lt(&self, other: &Rhs) -> bool

le

fn le(&self, other: &Rhs) -> bool

gt

fn gt(&self, other: &Rhs) -> bool

ge

fn ge(&self, other: &Rhs) -> bool

impl Serialize for DiagnosticNumber

impl Serialize for DiagnosticNumber

serialize

fn serialize<S>(
    &self,
    serializer: S,
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
    S: Serializer,

impl Copy for DiagnosticNumber

impl Copy for DiagnosticNumber

impl Eq for DiagnosticNumber

impl Eq for DiagnosticNumber

impl StructuralPartialEq for DiagnosticNumber

impl StructuralPartialEq for DiagnosticNumber