pub struct RelationalAccessCostContext { /* private fields */ }Expand description
Immutable structural work for the row source of one relation.
The default retains descriptor-only logical costing. A snapshot context must come from the exact pinned reader used by execution, rather than a global storage mode or cache counter. Counts describe logical lookup work; they do not certify cache warmth or predict physical I/O or elapsed time.
Implementations§
Source§impl RelationalAccessCostContext
impl RelationalAccessCostContext
Sourcepub const fn for_snapshot_rows(
table_rows: NonZero<u64>,
table_pages: NonZero<u64>,
) -> RelationalAccessCostContext
pub const fn for_snapshot_rows( table_rows: NonZero<u64>, table_pages: NonZero<u64>, ) -> RelationalAccessCostContext
Records bounded table metadata from a caller-pinned row snapshot. Empty or unavailable row roots retain the default context. Mixed row sources require one context per relation, including inside join memos.
Trait Implementations§
Source§impl Clone for RelationalAccessCostContext
impl Clone for RelationalAccessCostContext
Source§fn clone(&self) -> RelationalAccessCostContext
fn clone(&self) -> RelationalAccessCostContext
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 RelationalAccessCostContext
Source§impl Debug for RelationalAccessCostContext
impl Debug for RelationalAccessCostContext
Source§impl Default for RelationalAccessCostContext
impl Default for RelationalAccessCostContext
Source§fn default() -> RelationalAccessCostContext
fn default() -> RelationalAccessCostContext
Returns the “default value” for a type. Read more
impl Eq for RelationalAccessCostContext
impl StructuralPartialEq for RelationalAccessCostContext
Auto Trait Implementations§
impl Freeze for RelationalAccessCostContext
impl RefUnwindSafe for RelationalAccessCostContext
impl Send for RelationalAccessCostContext
impl Sync for RelationalAccessCostContext
impl Unpin for RelationalAccessCostContext
impl UnsafeUnpin for RelationalAccessCostContext
impl UnwindSafe for RelationalAccessCostContext
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