pub struct TomlDoc { /* private fields */ }Implementations§
Source§impl TomlDoc
impl TomlDoc
pub fn start_edit(&mut self)
pub fn set_smart_ws(&mut self, smart: bool)
pub fn finish_edit_no_reparse(&mut self)
pub fn finish_edit_full_reparse(&mut self)
pub fn insert(&mut self, what: impl Into<CstNode>, where_: Position)
pub fn replace( &mut self, what: impl Into<CstNode>, replacement: impl Into<CstNode>, )
pub fn detach(&mut self, what: impl Into<CstNode>)
pub fn swap(&mut self, node1: impl Into<CstNode>, node2: impl Into<CstNode>)
pub fn new_key(&mut self, name: &str) -> Key
pub fn new_value_from_text(&mut self, text: &str) -> Value
pub fn new_value(&mut self, val: impl IntoValue) -> Value
pub fn new_value_dict(&mut self, entries: impl Iterator<Item = Entry>) -> Value
pub fn new_value_array(&mut self, entries: impl Iterator<Item = Value>) -> Value
pub fn new_dict_from_text(&mut self, text: &str) -> Dict
pub fn new_entry_from_text(&mut self, text: &str) -> Entry
pub fn new_entry( &mut self, keys: impl Iterator<Item = Key>, value: Value, ) -> Entry
pub fn new_doc_from_text(&mut self, text: &str) -> Doc
pub fn new_table_from_text(&mut self, text: &str) -> Table
pub fn new_table( &mut self, keys: impl Iterator<Item = Key>, entries: impl Iterator<Item = Entry>, ) -> Table
pub fn new_array_table_from_text(&mut self, text: &str) -> ArrayTable
pub fn new_array_table( &mut self, keys: impl Iterator<Item = Key>, entries: impl Iterator<Item = Entry>, ) -> ArrayTable
pub fn new_whitespace(&mut self, ws: &str) -> CstNode
pub fn new_comma(&mut self) -> CstNode
Auto Trait Implementations§
impl Freeze for TomlDoc
impl RefUnwindSafe for TomlDoc
impl Send for TomlDoc
impl Sync for TomlDoc
impl Unpin for TomlDoc
impl UnwindSafe for TomlDoc
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