Trait nu_command::ValueExt [−][src]
pub trait ValueExt {}Show methods
fn into_parts(self) -> (UntaggedValue, Tag); fn get_data(&self, desc: &str) -> MaybeOwned<'_, Value>; fn get_data_by_key(&self, name: Spanned<&str>) -> Option<Value>; fn get_data_by_member(&self, name: &PathMember) -> Result<Value, ShellError>; fn get_data_by_column_path(
&self,
path: &ColumnPath,
callback: Box<dyn FnOnce(&Value, &PathMember, ShellError) + 'static, Global>
) -> Result<Value, ShellError>; fn swap_data_by_column_path(
&self,
path: &ColumnPath,
callback: Box<dyn FnOnce(&Value) + 'static, Global>
) -> Result<Value, ShellError>; fn insert_data_at_path(&self, path: &str, new_value: Value) -> Option<Value>; fn insert_data_at_member(
&mut self,
member: &PathMember,
new_value: Value
) -> Result<(), ShellError>; fn forgiving_insert_data_at_column_path(
&self,
split_path: &ColumnPath,
new_value: Value
) -> Result<Value, ShellError>; fn insert_data_at_column_path(
&self,
split_path: &ColumnPath,
new_value: Value
) -> Result<Value, ShellError>; fn replace_data_at_column_path(
&self,
split_path: &ColumnPath,
replaced_value: Value
) -> Option<Value>; fn as_column_path(&self) -> Result<Tagged<ColumnPath>, ShellError>; fn as_path_member(&self) -> Result<PathMember, ShellError>; fn as_string(&self) -> Result<String, ShellError>;
Required methods
fn into_parts(self) -> (UntaggedValue, Tag)
fn get_data(&self, desc: &str) -> MaybeOwned<'_, Value>
fn get_data_by_member(&self, name: &PathMember) -> Result<Value, ShellError>
fn get_data_by_column_path(
&self,
path: &ColumnPath,
callback: Box<dyn FnOnce(&Value, &PathMember, ShellError) + 'static, Global>
) -> Result<Value, ShellError>
fn swap_data_by_column_path(
&self,
path: &ColumnPath,
callback: Box<dyn FnOnce(&Value) + 'static, Global>
) -> Result<Value, ShellError>
fn insert_data_at_member(
&mut self,
member: &PathMember,
new_value: Value
) -> Result<(), ShellError>
fn forgiving_insert_data_at_column_path(
&self,
split_path: &ColumnPath,
new_value: Value
) -> Result<Value, ShellError>
fn insert_data_at_column_path(
&self,
split_path: &ColumnPath,
new_value: Value
) -> Result<Value, ShellError>
fn replace_data_at_column_path(
&self,
split_path: &ColumnPath,
replaced_value: Value
) -> Option<Value>
fn as_column_path(&self) -> Result<Tagged<ColumnPath>, ShellError>
fn as_path_member(&self) -> Result<PathMember, ShellError>
fn as_string(&self) -> Result<String, ShellError>
Implementations on Foreign Types
pub fn get_data_by_column_path(
&self,
path: &ColumnPath,
get_error: 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_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>