Skip to content
YosoiDocs

CountLimit

yosoi::CountLimit

pub struct CountLimit

Positive potentially-large document or locator count.

Source: crates/yosoi/src/internal/policy/policy/count.rs:7

SDK re-export: Source: crates/yosoi/src/lib.rs:35

pub const fn get(self) -> u64

Returns the positive retained count without converting it to platform address width.

Source: crates/yosoi/src/internal/policy/policy/count.rs:11

Clone
fn clone(&self) -> yosoi::CountLimit

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

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

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

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

Source: crates/yosoi/src/internal/policy/policy/count.rs:42

Hash
fn hash<__H: $crate::hash::Hasher>(&self, state: &mut __H)

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

Ord
fn cmp(&self, other: &yosoi::CountLimit) -> $crate::cmp::Ordering

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

PartialEq
fn eq(&self, other: &yosoi::CountLimit) -> bool

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

PartialOrd
fn partial_cmp(&self, other: &yosoi::CountLimit) -> $crate::option::Option<$crate::cmp::Ordering>

Source: crates/yosoi/src/internal/policy/policy/count.rs:6

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

Source: crates/yosoi/src/internal/policy/policy/count.rs:33

TryFrom
type Error = yosoi::PolicyError

Source: crates/yosoi/src/internal/policy/policy/count.rs:21

fn try_from(value: u64) -> Result<Self, <Self as >::Error>

Source: crates/yosoi/src/internal/policy/policy/count.rs:23