Trait nu_command::ValueExt[][src]

pub trait ValueExt {
    pub fn into_parts(self) -> (UntaggedValue, Tag);
pub fn get_data(&self, desc: &str) -> MaybeOwned<'_, Value>;
pub fn get_data_by_key(&self, name: Spanned<&str>) -> Option<Value>;
pub fn get_data_by_member(
        &self,
        name: &PathMember
    ) -> Result<Value, ShellError>;
pub fn get_data_by_column_path(
        &self,
        path: &ColumnPath,
        callback: Box<dyn FnOnce(&Value, &PathMember, ShellError) + 'static, Global>
    ) -> Result<Value, ShellError>;
pub fn swap_data_by_column_path(
        &self,
        path: &ColumnPath,
        callback: Box<dyn FnOnce(&Value) + 'static, Global>
    ) -> Result<Value, ShellError>;
pub fn insert_data_at_path(
        &self,
        path: &str,
        new_value: Value
    ) -> Option<Value>;
pub fn insert_data_at_member(
        &mut self,
        member: &PathMember,
        new_value: Value
    ) -> Result<(), ShellError>;
pub fn forgiving_insert_data_at_column_path(
        &self,
        split_path: &ColumnPath,
        new_value: Value
    ) -> Result<Value, ShellError>;
pub fn insert_data_at_column_path(
        &self,
        split_path: &ColumnPath,
        new_value: Value
    ) -> Result<Value, ShellError>;
pub fn replace_data_at_column_path(
        &self,
        split_path: &ColumnPath,
        replaced_value: Value
    ) -> Option<Value>;
pub fn as_column_path(&self) -> Result<Tagged<ColumnPath>, ShellError>;
pub fn as_path_member(&self) -> Result<PathMember, ShellError>;
pub fn as_string(&self) -> Result<String, ShellError>; }

Required methods

pub fn into_parts(self) -> (UntaggedValue, Tag)[src]

pub fn get_data(&self, desc: &str) -> MaybeOwned<'_, Value>[src]

pub fn get_data_by_key(&self, name: Spanned<&str>) -> Option<Value>[src]

pub fn get_data_by_member(&self, name: &PathMember) -> Result<Value, ShellError>[src]

pub fn get_data_by_column_path(
    &self,
    path: &ColumnPath,
    callback: Box<dyn FnOnce(&Value, &PathMember, ShellError) + 'static, Global>
) -> Result<Value, ShellError>
[src]

pub fn swap_data_by_column_path(
    &self,
    path: &ColumnPath,
    callback: Box<dyn FnOnce(&Value) + 'static, Global>
) -> Result<Value, ShellError>
[src]

pub fn insert_data_at_path(&self, path: &str, new_value: Value) -> Option<Value>[src]

pub fn insert_data_at_member(
    &mut self,
    member: &PathMember,
    new_value: Value
) -> Result<(), ShellError>
[src]

pub fn forgiving_insert_data_at_column_path(
    &self,
    split_path: &ColumnPath,
    new_value: Value
) -> Result<Value, ShellError>
[src]

pub fn insert_data_at_column_path(
    &self,
    split_path: &ColumnPath,
    new_value: Value
) -> Result<Value, ShellError>
[src]

pub fn replace_data_at_column_path(
    &self,
    split_path: &ColumnPath,
    replaced_value: Value
) -> Option<Value>
[src]

pub fn as_column_path(&self) -> Result<Tagged<ColumnPath>, ShellError>[src]

pub fn as_path_member(&self) -> Result<PathMember, ShellError>[src]

pub fn as_string(&self) -> Result<String, ShellError>[src]

Loading content...

Implementations on Foreign Types

impl ValueExt for Value[src]

Loading content...

Implementors

Loading content...