Trait nu_protocol::LazyRecord

source ·
pub trait LazyRecord<'a>: Debug + Send + Sync {
    // Required methods
    fn column_names(&'a self) -> Vec<&'a str>;
    fn get_column_value(&self, column: &str) -> Result<Value, ShellError>;
    fn span(&self) -> Span;
    fn clone_value(&self, span: Span) -> Value;

    // Provided method
    fn collect(&'a self) -> Result<Value, ShellError> { ... }
}

Required Methods§

source

fn column_names(&'a self) -> Vec<&'a str>

source

fn get_column_value(&self, column: &str) -> Result<Value, ShellError>

source

fn span(&self) -> Span

source

fn clone_value(&self, span: Span) -> Value

Provided Methods§

Implementors§