#[non_exhaustive]pub enum ReadLimitResource {
Nodes,
Edges,
NestedGraphs,
}Expand description
Structural collection bounded by a crate::io::ReadOptions count limit.
Distinct from the decoded-allocation budget (max_bytes /
NirError::ReadLimitExceeded): these count nodes, edges, or nested
graph groups rather than decoded payload bytes.
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.
Nodes
Total nodes across the root graph and every nested NIRGraph.
Edges
Total edges across the root graph and every nested NIRGraph.
NestedGraphs
Total NIRGraph groups decoded from the file, including the root.
Trait Implementations§
Source§impl Clone for ReadLimitResource
impl Clone for ReadLimitResource
Source§fn clone(&self) -> ReadLimitResource
fn clone(&self) -> ReadLimitResource
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReadLimitResource
Source§impl Debug for ReadLimitResource
impl Debug for ReadLimitResource
Source§impl Display for ReadLimitResource
impl Display for ReadLimitResource
impl Eq for ReadLimitResource
Source§impl Hash for ReadLimitResource
impl Hash for ReadLimitResource
Source§impl PartialEq for ReadLimitResource
impl PartialEq for ReadLimitResource
impl StructuralPartialEq for ReadLimitResource
Auto Trait Implementations§
impl Freeze for ReadLimitResource
impl RefUnwindSafe for ReadLimitResource
impl Send for ReadLimitResource
impl Sync for ReadLimitResource
impl Unpin for ReadLimitResource
impl UnsafeUnpin for ReadLimitResource
impl UnwindSafe for ReadLimitResource
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.