pub struct Properties { /* private fields */ }
Implementations§
Source§impl Properties
impl Properties
pub fn new() -> Properties
pub fn from_str(contents: &String) -> Properties
pub fn from_file(file: &File) -> Result<Properties>
pub fn save(&self, file: &mut File) -> Result<String>
pub fn get(&self, key: &str) -> Option<&String>
pub fn set(&mut self, key: &str, value: &str)
pub fn unset(&mut self, key: &str)
pub fn parse_file(file: &File) -> Result<HashMap<String, String>>
pub fn parse(contents: &String) -> HashMap<String, String>
pub fn is_newline_value(value: Option<&PropertyValue>) -> bool
Trait Implementations§
Source§impl Debug for Properties
impl Debug for Properties
Auto Trait Implementations§
impl Freeze for Properties
impl RefUnwindSafe for Properties
impl Send for Properties
impl Sync for Properties
impl Unpin for Properties
impl UnwindSafe for Properties
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