pub struct LongPatternBoundsV1 { /* private fields */ }Expand description
Complete independent resource bounds shared by contracts, providers and query plans.
Implementations§
Source§impl LongPatternBoundsV1
impl LongPatternBoundsV1
Sourcepub fn new(
source_bytes: u32,
matched_bytes: u32,
rows: u32,
total_matched_bytes: u64,
distinct_grams: u32,
postings: u64,
postings_bytes: u64,
grams_per_row: u32,
pattern_bytes: u32,
wildcard_atoms: u32,
literal_runs: u32,
candidates: u32,
verification_bytes: u64,
results: u32,
) -> Result<Self, LongPatternBoundsErrorV1>
pub fn new( source_bytes: u32, matched_bytes: u32, rows: u32, total_matched_bytes: u64, distinct_grams: u32, postings: u64, postings_bytes: u64, grams_per_row: u32, pattern_bytes: u32, wildcard_atoms: u32, literal_runs: u32, candidates: u32, verification_bytes: u64, results: u32, ) -> Result<Self, LongPatternBoundsErrorV1>
Constructs one fully checked bound set.
Sourcepub const fn source_bytes(self) -> u32
pub const fn source_bytes(self) -> u32
Maximum source bytes.
Sourcepub const fn matched_bytes(self) -> u32
pub const fn matched_bytes(self) -> u32
Maximum matched bytes per row.
Sourcepub const fn total_matched_bytes(self) -> u64
pub const fn total_matched_bytes(self) -> u64
Maximum total retained matched bytes.
Sourcepub const fn distinct_grams(self) -> u32
pub const fn distinct_grams(self) -> u32
Maximum distinct grams.
Sourcepub const fn postings_bytes(self) -> u64
pub const fn postings_bytes(self) -> u64
Maximum encoded posting bytes.
Sourcepub const fn grams_per_row(self) -> u32
pub const fn grams_per_row(self) -> u32
Maximum grams retained per row.
Sourcepub const fn pattern_bytes(self) -> u32
pub const fn pattern_bytes(self) -> u32
Maximum submitted pattern bytes.
Sourcepub const fn wildcard_atoms(self) -> u32
pub const fn wildcard_atoms(self) -> u32
Maximum transformed wildcard atoms.
Sourcepub const fn literal_runs(self) -> u32
pub const fn literal_runs(self) -> u32
Maximum literal runs in one wildcard pattern.
Sourcepub const fn candidates(self) -> u32
pub const fn candidates(self) -> u32
Maximum candidates verified by one query.
Sourcepub const fn verification_bytes(self) -> u64
pub const fn verification_bytes(self) -> u64
Maximum matched bytes verified by one query.
Trait Implementations§
Source§impl Clone for LongPatternBoundsV1
impl Clone for LongPatternBoundsV1
impl Copy for LongPatternBoundsV1
Source§impl Debug for LongPatternBoundsV1
impl Debug for LongPatternBoundsV1
impl Eq for LongPatternBoundsV1
Source§impl PartialEq for LongPatternBoundsV1
impl PartialEq for LongPatternBoundsV1
impl StructuralPartialEq for LongPatternBoundsV1
Auto Trait Implementations§
impl Freeze for LongPatternBoundsV1
impl RefUnwindSafe for LongPatternBoundsV1
impl Send for LongPatternBoundsV1
impl Sync for LongPatternBoundsV1
impl Unpin for LongPatternBoundsV1
impl UnsafeUnpin for LongPatternBoundsV1
impl UnwindSafe for LongPatternBoundsV1
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