pub struct TagSection { /* private fields */ }
Expand description
A section in a TagFile. A TagFile is made up of double-newline (\n\n
)
separated paragraphs, each of which make up one of these sections.
Implementations§
Source§impl TagSection
impl TagSection
Sourcepub fn new(section: &str) -> Result<Self, ParserError>
pub fn new(section: &str) -> Result<Self, ParserError>
Create a new TagSection
instance.
§Returns
Sourcepub fn hashmap(&self) -> &HashMap<String, String>
pub fn hashmap(&self) -> &HashMap<String, String>
Get the underlying HashMap
used in the generated TagSection
.
Sourcepub fn get_default<'a, 'b: 'a>(&'a self, key: &str, default: &'b str) -> &str
pub fn get_default<'a, 'b: 'a>(&'a self, key: &str, default: &'b str) -> &str
Get the value of the specified key,
Returns specified default on failure.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TagSection
impl RefUnwindSafe for TagSection
impl Send for TagSection
impl Sync for TagSection
impl Unpin for TagSection
impl UnwindSafe for TagSection
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