pub fn span(&self) -> Result<Span, ShellError> {
        match self {
            Value::Error { error } => Err(error.clone()),
            Value::Bool { span, .. } => Ok(*span),
            Value::Int { span, .. } => Ok(*span),
            Value::Float { span, .. } => Ok(*span),
            Value::Filesize { span, .. } => Ok(*span),
            Value::Duration { span, .. } => Ok(*span),
            Value::Date { span, .. } => Ok(*span),
            Value::Range { span, .. } => Ok(*span),
            Value::String { span, .. } => Ok(*span),
            Value::Record { span, .. } => Ok(*span),
            Value::List { span, .. } => Ok(*span),
            Value::Block { span, .. } => Ok(*span),
            Value::Nothing { span, .. } => Ok(*span),
            Value::Binary { span, .. } => Ok(*span),
            Value::CellPath { span, .. } => Ok(*span),
        }
    }
/// Get the span for the current value
Get the span for the current value
Get the span for the current value
pub fn span(&self) -> Result<Span, ShellError> {
        match self {
            Value::Error { error } => Err(error.clone()),
            Value::Bool { span, .. } => Ok(*span),
            Value::Int { span, .. } => Ok(*span),
            Value::Float { span, .. } => Ok(*span),
            Value::Filesize { span, .. } => Ok(*span),
            Value::Duration { span, .. } => Ok(*span),
            Value::Date { span, .. } => Ok(*span),
            Value::Range { span, .. } => Ok(*span),
            Value::String { span, .. } => Ok(*span),
            Value::Record { span, .. } => Ok(*span),
            Value::List { span, .. } => Ok(*span),
            Value::Block { span, .. } => Ok(*span),
            Value::Nothing { span, .. } => Ok(*span),
            Value::Binary { span, .. } => Ok(*span),
            Value::CellPath { span, .. } => Ok(*span),
        }
    }
pub fn span ( & self ) -> Result < Span , ShellError > { match self { Value :: Error { error } => Err ( error . clone ( ) ) , Value :: Bool { span , .. } => Ok ( * span ) , Value :: Int { span , .. } => Ok ( * span ) , Value :: Float { span , .. } => Ok ( * span ) , Value :: Filesize { span , .. } => Ok ( * span ) , Value :: Duration { span , .. } => Ok ( * span ) , Value :: Date { span , .. } => Ok ( * span ) , Value :: Range { span , .. } => Ok ( * span ) , Value :: String { span , .. } => Ok ( * span ) , Value :: Record { span , .. } => Ok ( * span ) , Value :: List { span , .. } => Ok ( * span ) , Value :: Block { span , .. } => Ok ( * span ) , Value :: Nothing { span , .. } => Ok ( * span ) , Value :: Binary { span , .. } => Ok ( * span ) , Value :: CellPath { span , .. } => Ok ( * span ) , } }
Get the span for the current value
Get the span for the current value
&self