pub struct Cost {
pub cpu: f64,
pub io: f64,
pub memory: f64,
pub network: f64,
}Expand description
Cost of an operation.
Represents the estimated resource consumption of executing an operator.
Fields§
§cpu: f64Estimated CPU cycles / work units.
io: f64Estimated I/O operations (page reads).
memory: f64Estimated memory usage in bytes.
network: f64Network cost (for distributed queries).
Implementations§
Trait Implementations§
Source§impl AddAssign for Cost
impl AddAssign for Cost
Source§fn add_assign(&mut self, other: Self)
fn add_assign(&mut self, other: Self)
Performs the
+= operation. Read moreimpl Copy for Cost
impl StructuralPartialEq for Cost
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnwindSafe for Cost
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