`true` if `self` contains neither inputs, outputs nor mutations.
(&self)
| 109 | impl<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 | |
| 118 | impl<T: Encode> Txdata<T> { |