Trait mz_persist_types::stats::DynStats

source ·
pub trait DynStats: Debug + Send + Sync + 'static {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn into_proto(&self) -> ProtoDynStats;
    fn debug_json(&self) -> Value;

    // Provided method
    fn type_name(&self) -> &'static str { ... }
}
Expand description

Type-erased aggregate statistics about a column of data.

Required Methods§

source

fn as_any(&self) -> &dyn Any

Returns self as a dyn Any for downcasting.

source

fn into_proto(&self) -> ProtoDynStats

source

fn debug_json(&self) -> Value

Formats these statistics for use in INSPECT SHARD and debugging.

Provided Methods§

source

fn type_name(&self) -> &'static str

Returns the name of the erased type for use in error messages.

Trait Implementations§

source§

impl RustType<ProtoDynStats> for Box<dyn DynStats>

source§

fn into_proto(&self) -> ProtoDynStats

Convert a Self into a Proto value.
source§

fn from_proto(proto: ProtoDynStats) -> Result<Self, TryFromProtoError>

Consume and convert a Proto back into a Self value. Read more

Implementors§