pub enum Dialect {
Punctuated,
Spaced,
}Expand description
Which separator spelling a document uses.
Not auto-detected: a key value line is indistinguishable from a malformed
.env line, and guessing wrong would silently edit the wrong bytes. The
caller states it, exactly as -t does for every other format.
Variants§
Punctuated
.env / .properties: the first = or : ends the key.
Spaced
envspaced: the first run of spaces or tabs ends the key
(sshd_config, ssh_config, zoo.cfg-adjacent daemon configs).
Deliberately not an ssh_config parser: Match / Host blocks scope
the keys beneath them, and this model is flat, so a file using them is
out of scope rather than half-supported.
Trait Implementations§
impl Copy for Dialect
impl Eq for Dialect
impl StructuralPartialEq for Dialect
Auto Trait Implementations§
impl Freeze for Dialect
impl RefUnwindSafe for Dialect
impl Send for Dialect
impl Sync for Dialect
impl Unpin for Dialect
impl UnsafeUnpin for Dialect
impl UnwindSafe for Dialect
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