pub struct OccurrenceLimits { /* private fields */ }Expand description
Explicit bounds on traversal depth, emitted appearances and total read work.
Implementations§
Source§impl OccurrenceLimits
impl OccurrenceLimits
Sourcepub const fn new(
depth: NonZeroU32,
occurrences: NonZeroU64,
steps: NonZeroU64,
) -> Self
pub const fn new( depth: NonZeroU32, occurrences: NonZeroU64, steps: NonZeroU64, ) -> Self
Depth counts path positions, so one permits only non-triple root terms. Steps count root-cursor reads and authoritative term decompositions.
Trait Implementations§
Source§impl Clone for OccurrenceLimits
impl Clone for OccurrenceLimits
impl Copy for OccurrenceLimits
Source§impl Debug for OccurrenceLimits
impl Debug for OccurrenceLimits
Source§impl<'de> Deserialize<'de> for OccurrenceLimits
impl<'de> Deserialize<'de> for OccurrenceLimits
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for OccurrenceLimits
impl Freeze for OccurrenceLimits
impl Move for OccurrenceLimits
impl RefUnwindSafe for OccurrenceLimits
impl Send for OccurrenceLimits
impl Sync for OccurrenceLimits
impl Unpin for OccurrenceLimits
impl UnsafeUnpin for OccurrenceLimitswhere
NonZeroU32Inner: UnsafeUnpin,
NonZeroU64Inner: UnsafeUnpin,
impl UnwindSafe for OccurrenceLimits
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more