Struct glib::KeyFile
[−]
[src]
pub struct KeyFile(_);
Methods
impl KeyFile
[src]
fn new() -> KeyFile
fn get_boolean(&self, group_name: &str, key: &str) -> Result<(), Error>
fn get_comment<'a, P: Into<Option<&'a str>>>(
&self,
group_name: P,
key: &str
) -> Result<String, Error>
&self,
group_name: P,
key: &str
) -> Result<String, Error>
fn get_double(&self, group_name: &str, key: &str) -> Result<f64, Error>
fn get_groups(&self) -> (Vec<String>, usize)
fn get_int64(&self, group_name: &str, key: &str) -> Result<i64, Error>
fn get_integer(&self, group_name: &str, key: &str) -> Result<i32, Error>
fn get_keys(&self, group_name: &str) -> Result<(Vec<String>, usize), Error>
fn get_locale_string<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<String, Error>
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<String, Error>
fn get_locale_string_list<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<Vec<String>, Error>
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<Vec<String>, Error>
fn get_start_group(&self) -> Option<String>
fn get_string(&self, group_name: &str, key: &str) -> Result<String, Error>
fn get_string_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<String>, Error>
&self,
group_name: &str,
key: &str
) -> Result<Vec<String>, Error>
fn get_uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>
fn get_value(&self, group_name: &str, key: &str) -> Result<String, Error>
fn has_group(&self, group_name: &str) -> bool
fn has_key(&self, group_name: &str, key: &str) -> Result<(), Error>
fn load_from_file<P: AsRef<Path>>(
&self,
file: P,
flags: KeyFileFlags
) -> Result<(), Error>
&self,
file: P,
flags: KeyFileFlags
) -> Result<(), Error>
fn remove_comment<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
group_name: P,
key: Q
) -> Result<(), Error>
&self,
group_name: P,
key: Q
) -> Result<(), Error>
fn remove_group(&self, group_name: &str) -> Result<(), Error>
fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>
fn set_boolean(&self, group_name: &str, key: &str, value: bool)
fn set_comment<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
group_name: P,
key: Q,
comment: &str
) -> Result<(), Error>
&self,
group_name: P,
key: Q,
comment: &str
) -> Result<(), Error>
fn set_double(&self, group_name: &str, key: &str, value: f64)
fn set_int64(&self, group_name: &str, key: &str, value: i64)
fn set_integer(&self, group_name: &str, key: &str, value: i32)
fn set_locale_string(
&self,
group_name: &str,
key: &str,
locale: &str,
string: &str
)
&self,
group_name: &str,
key: &str,
locale: &str,
string: &str
)
fn set_string(&self, group_name: &str, key: &str, string: &str)
fn set_uint64(&self, group_name: &str, key: &str, value: u64)
fn set_value(&self, group_name: &str, key: &str, value: &str)
fn to_data(&self) -> Result<(String, usize), Error>
impl KeyFile
[src]
fn load_from_data_dirs<T: AsRef<Path>>(
&self,
file: T,
flags: KeyFileFlags
) -> Result<PathBuf, Error>
&self,
file: T,
flags: KeyFileFlags
) -> Result<PathBuf, Error>
fn load_from_dirs<T: AsRef<Path>, U: AsRef<Path>>(
&self,
file: T,
search_dirs: &[U],
flags: KeyFileFlags
) -> Result<PathBuf, Error>
&self,
file: T,
search_dirs: &[U],
flags: KeyFileFlags
) -> Result<PathBuf, Error>
Trait Implementations
impl Clone for KeyFile
[src]
fn clone(&self) -> KeyFile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more