ReplacePaths

Trait ReplacePaths 

Source
pub trait ReplacePaths: ValuesCollection {
    type Value;

    // Required methods
    fn replace_paths<I, C>(&mut self, paths: I, from: FieldType, to: FieldType)
       where I: IntoIterator<Item = C>,
             C: AsRef<str>;
    fn replace_path(
        &mut self,
        path: &str,
        from: FieldType,
        to: FieldType,
    ) -> Option<()>;
    fn get_path_mut(
        &mut self,
        path: &str,
    ) -> Option<&mut <Self as ReplacePaths>::Value>;
}

Required Associated Types§

Required Methods§

Source

fn replace_paths<I, C>(&mut self, paths: I, from: FieldType, to: FieldType)
where I: IntoIterator<Item = C>, C: AsRef<str>,

Source

fn replace_path( &mut self, path: &str, from: FieldType, to: FieldType, ) -> Option<()>

Source

fn get_path_mut( &mut self, path: &str, ) -> Option<&mut <Self as ReplacePaths>::Value>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl ReplacePaths for Value

Source§

type Value = Value

Source§

fn replace_paths<I, C>(&mut self, paths: I, from: FieldType, to: FieldType)
where I: IntoIterator<Item = C>, C: AsRef<str>,

Source§

fn replace_path( &mut self, path: &str, from: FieldType, to: FieldType, ) -> Option<()>

Source§

fn get_path_mut(&mut self, path: &str) -> Option<&mut Value>

Implementors§