MCPcopy Create free account
hub / github.com/cosdata/cosdata / latest

Method latest

src/models/tree_map.rs:268–274  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

266 }
267
268 pub fn latest(&self) -> Option<&T> {
269 if let Some(next) = &self.next {
270 return next.latest();
271 }
272
273 self.value.as_ref()
274 }
275
276 pub fn latest_item(&self) -> &Self {
277 if let Some(next) = &self.next {

Callers 1

get_latestMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected