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
Methods
Section titled “Methods”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
Trait implementations
Section titled “Trait implementations”Clone
fn clone(&self) -> yosoi::CountLimit
Debug
fn fmt(&self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
Deserialize
deserialize
Section titled “deserialize”fn deserialize<D>(deserializer: D) -> Result<Self, <D as >::Error> where D: Deserializer<'de>
Hash
fn hash<__H: $crate::hash::Hasher>(&self, state: &mut __H)
Ord
fn cmp(&self, other: &yosoi::CountLimit) -> $crate::cmp::Ordering
PartialEq
fn eq(&self, other: &yosoi::CountLimit) -> bool
PartialOrd
partial_cmp
Section titled “partial_cmp”fn partial_cmp(&self, other: &yosoi::CountLimit) -> $crate::option::Option<$crate::cmp::Ordering>
Serialize
serialize
Section titled “serialize”fn serialize<S>(&self, serializer: S) -> Result<<S as >::Ok, <S as >::Error> where S: Serializer
TryFrom
type Error = yosoi::PolicyError
Source: crates/yosoi/src/internal/policy/policy/count.rs:21
try_from
Section titled “try_from”fn try_from(value: u64) -> Result<Self, <Self as >::Error>