pub trait MaybePackable<'a, T: Packable + ?Sized> {
// Required methods
fn maybe_packable(self) -> Option<Cow<'a, T>>;
fn agg(&self) -> Agg;
}Expand description
Adapter trait that lets both T and Option<T> (and &T, Option<&T>, etc.) be used
as input values when writing to a ColumnData or Encoder.
This is what allows StrCursor to accept &str, String, Option<&str>, and
Option<String> interchangeably, and UIntCursor to accept u64 or Option<u64>.
A value that converts to None encodes a null entry.