MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / push_valid

Method push_valid

nodedb-columnar/src/memtable/column_data/mutation.rs:127–131  ·  view source on GitHub ↗
(valid: &mut Option<Vec<bool>>, is_valid: bool)

Source from the content-addressed store, hash-verified

125 /// Push a validity bit (if the column is nullable).
126 #[inline(always)]
127 pub(crate) fn push_valid(valid: &mut Option<Vec<bool>>, is_valid: bool) {
128 if let Some(v) = valid {
129 v.push(is_valid);
130 }
131 }
132
133 /// Append a value. Returns error if type doesn't match.
134 pub(crate) fn push(&mut self, value: &Value, col_name: &str) -> Result<(), ColumnarError> {

Callers

nothing calls this directly

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected