Skip to main content

MemoryExt

Trait MemoryExt 

Source
pub trait MemoryExt: Sized {
    // Required method
    fn add_in_memory<S: AsRef<str>>(self, data: &[(S, S)]) -> Self;
}
Available on crate feature mem only.
Expand description

Defines in-memory extension methods for a configuration builder.

Required Methods§

Source

fn add_in_memory<S: AsRef<str>>(self, data: &[(S, S)]) -> Self

Adds an in-memory configuration source using the specified data.

§Arguments
  • data - The in-memory data to add

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.

Implementors§