pub struct Section<'a> { /* private fields */ }
Implementations§
Source§impl<'a> Section<'a>
impl<'a> Section<'a>
pub fn new() -> Self
pub fn get_all(&self, key: &str) -> Option<&Vec<&'a str>>
pub fn get_first(&self, key: &str) -> Option<&'a str>
pub fn get_all_as_boxed(&self, key: &str) -> Option<Vec<Box<str>>>
pub fn get_first_as_boxed(&self, key: &str) -> Option<Box<str>>
pub fn get_first_as_path_boxed(&self, key: &str) -> Option<Box<Path>>
pub fn get_first_as_boolean(&self, key: &str) -> Option<bool>
Source§impl<'a> Section<'a>
impl<'a> Section<'a>
pub fn insert_item(&mut self, key: &'a str, desktop_file: &'a str)
pub fn insert_item_at_front(&mut self, key: &'a str, desktop_file: &'a str)
pub fn insert_items(&mut self, key: &'a str, desktop_files: Vec<&'a str>)
pub fn set_items(&mut self, key: &'a str, desktop_files: Vec<&'a str>)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Section<'a>
impl<'a> RefUnwindSafe for Section<'a>
impl<'a> Send for Section<'a>
impl<'a> Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> UnwindSafe for Section<'a>
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