MCPcopy Create free account
hub / github.com/GraphLite-AI/GraphLite / new

Method new

graphlite/src/plan/cost.rs:93–101  ·  view source on GitHub ↗

Create a new cost estimate

()

Source from the content-addressed store, hash-verified

91impl CostEstimate {
92 /// Create a new cost estimate
93 pub fn new() -> Self {
94 Self {
95 cpu_cost: 0.0,
96 io_cost: 0.0,
97 memory_cost: 0.0,
98 network_cost: 0.0,
99 total_time: 0.0,
100 }
101 }
102
103 /// Add another cost estimate to this one
104 pub fn add(&mut self, other: &CostEstimate) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected