pub struct TomlFormat;Expand description
Comment-preserving TOML adapter backed by toml_edit.
Trait Implementations§
Source§impl Clone for TomlFormat
impl Clone for TomlFormat
impl Copy for TomlFormat
Source§impl Debug for TomlFormat
impl Debug for TomlFormat
Source§impl Default for TomlFormat
impl Default for TomlFormat
Source§impl FormatAdapter for TomlFormat
impl FormatAdapter for TomlFormat
Source§fn edit_text(
&self,
text: &str,
pointer: &str,
new_value: &str,
) -> Result<String>
fn edit_text( &self, text: &str, pointer: &str, new_value: &str, ) -> Result<String>
Produce updated text without touching the filesystem.
Source§fn read_text(&self, text: &str, pointer: &str) -> Result<String>
fn read_text(&self, text: &str, pointer: &str) -> Result<String>
Read a selected string from in-memory text.
Auto Trait Implementations§
impl Freeze for TomlFormat
impl RefUnwindSafe for TomlFormat
impl Send for TomlFormat
impl Sync for TomlFormat
impl Unpin for TomlFormat
impl UnsafeUnpin for TomlFormat
impl UnwindSafe for TomlFormat
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more