MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / is_empty

Method is_empty

crates/commitlog/src/payload/txdata.rs:111–115  ·  view source on GitHub ↗

`true` if `self` contains neither inputs, outputs nor mutations.

(&self)

Source from the content-addressed store, hash-verified

109impl<T> Txdata<T> {
110 /// `true` if `self` contains neither inputs, outputs nor mutations.
111 pub fn is_empty(&self) -> bool {
112 self.inputs.is_none()
113 && self.outputs.is_none()
114 && self.mutations.as_ref().map(Mutations::is_empty).unwrap_or(true)
115 }
116}
117
118impl<T: Encode> Txdata<T> {

Callers

nothing calls this directly

Calls 3

unwrap_orMethod · 0.80
mapMethod · 0.45
as_refMethod · 0.45

Tested by

no test coverage detected