Skip to main content

LimitKind

Enum LimitKind 

Source
#[non_exhaustive]
pub enum LimitKind {
Show 47 variants EnumSize, ArrayLength, NodeCount, RecursionDepth, StateCount, TransitionCount, ShuffleFields, ShuffleStates, ShuffleEdges, ProductBranches, ProductStates, ProductEdges, VocabSize, TokenByteLen, ArtifactBytes, PropertyCount, DocumentBytes, KeyBytes, StringBytes, NumberBytes, ActiveValidators, CanonicalBytes, UndoEntries, MaskWork, MaskScratchBytes, PlanBytes, SessionBytes, AllocationBytes, DocumentCount, AstNodeCount, AstBytes, ResourceCount, InputBytes, PatternInputBytes, PatternHirNodes, PatternNfaBytes, PatternDfaBytes, PatternCompileWork, UriBytes, AnchorCount, ReferenceCount, SchemaLocationCount, ResourceDepth, DynamicScopeDepth, ResolutionWork, ResourceGraphBytes, ResourceBuildBytes,
}
Expand description

Resource-limit kinds. The variants and error type are stable; no numeric bound is enforced for any of them.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

EnumSize

Number of members in an enum.

§

ArrayLength

Length of an array.

§

NodeCount

Number of IR nodes.

§

RecursionDepth

Depth of nested recursion.

§

StateCount

Number of reference states.

§

TransitionCount

Number of stored transitions.

§

ShuffleFields

Number of independently orderable shuffle fields.

§

ShuffleStates

Number of states admitted by one shuffle construction.

§

ShuffleEdges

Number of edges admitted by one shuffle construction.

§

ProductBranches

Number of branches admitted by one product construction.

§

ProductStates

Number of states admitted by one product construction.

§

ProductEdges

Number of edges admitted by one product construction.

§

VocabSize

Size of the vocabulary.

§

TokenByteLen

Byte length of a single token.

§

ArtifactBytes

Size in bytes of a compiled artifact.

§

PropertyCount

Number of properties observed on one object instance.

§

DocumentBytes

Byte length of the accumulated document a session has processed.

§

KeyBytes

Byte length of one object property key.

§

StringBytes

Byte length of one string value.

§

NumberBytes

Byte length of one number literal.

§

ActiveValidators

Number of simultaneously active nested validators (e.g. dependentSchemas/unevaluated*).

§

CanonicalBytes

Retained bytes in the uniqueItems canonical-value arena.

§

UndoEntries

Number of entries in a session’s undo log.

§

MaskWork

Accounted work units spent computing one mask.

§

MaskScratchBytes

Retained bytes in one structured matcher traversal stack.

§

PlanBytes

Size in bytes of a compiled StructuredPlan.

§

SessionBytes

Retained bytes of one session’s mutable state.

§

AllocationBytes

Bytes requested from an allocator for a bounded runtime container.

§

DocumentCount

Number of registered schema documents.

§

AstNodeCount

Number of values retained by parsed schema ASTs.

§

AstBytes

Heap bytes retained by parsed schema ASTs.

§

ResourceCount

Number of discovered schema resources.

§

InputBytes

Aggregate bytes of registered schema documents.

§

PatternInputBytes

Source bytes accepted by the canonical ECMA pattern lowering path.

§

PatternHirNodes

Estimated syntax/HIR nodes produced by pattern parsing.

§

PatternNfaBytes

Thompson NFA bytes or states retained during pattern construction.

§

PatternDfaBytes

Determinized DFA bytes or states retained during pattern construction.

§

PatternCompileWork

Bounded pattern parsing and automaton-construction work units.

§

UriBytes

URI bytes retained by the resource graph.

§

AnchorCount

Number of static and dynamic anchors.

§

ReferenceCount

Number of $ref and $dynamicRef occurrences.

§

SchemaLocationCount

Number of indexed schema locations.

§

ResourceDepth

Nested schema-resource depth established by $id.

§

DynamicScopeDepth

Number of schema resources retained in one runtime dynamic-scope chain.

§

ResolutionWork

Bounded resource-discovery and reference-resolution work.

§

ResourceGraphBytes

Retained bytes in the frozen schema-resource graph.

§

ResourceBuildBytes

Peak bytes retained while constructing a schema-resource graph.

Trait Implementations§

Source§

impl Clone for LimitKind

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for LimitKind

Source§

impl Debug for LimitKind

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for LimitKind

Source§

impl Hash for LimitKind

Source§

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

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

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

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for LimitKind

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for LimitKind

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.