pub struct NixList {
pub open_line: &'static str,
pub close_line: &'static str,
pub item_indent: usize,
pub quoted: bool,
}Expand description
Describes an editable list inside a nix file.
Fields§
§open_line: &'static strRegex-free prefix of the opening line (trimmed for matching).
close_line: &'static strRegex-free prefix of the closing line.
item_indent: usizeNumber of spaces before each item.
quoted: boolWhether items are quoted strings ("foo") or bare identifiers (foo).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NixList
impl RefUnwindSafe for NixList
impl Send for NixList
impl Sync for NixList
impl Unpin for NixList
impl UnsafeUnpin for NixList
impl UnwindSafe for NixList
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