record_sample

Function record_sample 

Source
pub fn record_sample(
    record: &Record,
    header: &Header,
    sample: &str,
) -> Option<Vec<(String, FormatValue)>>
Expand description

Get sample data from a record for a single sample by name.

This is the standalone version of Variant::sample() that can be used when you have a borrowed reference to a record (e.g., from a GcCell).