pub struct Section {
pub key: String,
pub meta: Meta,
pub array_index: Option<usize>,
pub blocks: Vec<Block>,
}Fields§
§key: String§meta: Meta§array_index: Option<usize>§blocks: Vec<Block>Implementations§
Source§impl Section
impl Section
pub fn is_root(&self) -> bool
pub fn is_value(&self) -> bool
pub fn is_commented(&self) -> bool
pub fn is_none_skipped(&self) -> bool
pub fn assigned_to(&mut self, ident: impl AsRef<str>)
pub fn reduce(sections: &mut Vec<Section>)
pub fn render(&self) -> Result<String, Error>
pub fn comment(&self) -> Comment
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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