Struct glib::KeyFile [−][src]
pub struct KeyFile(_);
Methods
impl KeyFile
[src]
impl KeyFile
pub fn new() -> KeyFile
[src]
pub fn new() -> KeyFile
pub fn get_comment<'a, P: Into<Option<&'a str>>>(
&self,
group_name: P,
key: &str
) -> Result<String, Error>
[src]
pub fn get_comment<'a, P: Into<Option<&'a str>>>(
&self,
group_name: P,
key: &str
) -> Result<String, Error>
pub fn get_double(&self, group_name: &str, key: &str) -> Result<f64, Error>
[src]
pub fn get_double(&self, group_name: &str, key: &str) -> Result<f64, Error>
pub fn get_double_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<f64>, Error>
[src]
pub fn get_double_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<f64>, Error>
pub fn get_groups(&self) -> (Vec<String>, usize)
[src]
pub fn get_groups(&self) -> (Vec<String>, usize)
pub fn get_int64(&self, group_name: &str, key: &str) -> Result<i64, Error>
[src]
pub fn get_int64(&self, group_name: &str, key: &str) -> Result<i64, Error>
pub fn get_integer(&self, group_name: &str, key: &str) -> Result<i32, Error>
[src]
pub fn get_integer(&self, group_name: &str, key: &str) -> Result<i32, Error>
pub fn get_integer_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<i32>, Error>
[src]
pub fn get_integer_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<i32>, Error>
pub fn get_keys(&self, group_name: &str) -> Result<(Vec<String>, usize), Error>
[src]
pub fn get_keys(&self, group_name: &str) -> Result<(Vec<String>, usize), Error>
pub fn get_locale_string<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<String, Error>
[src]
pub fn get_locale_string<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<String, Error>
pub fn get_locale_string_list<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<Vec<String>, Error>
[src]
pub fn get_locale_string_list<'a, P: Into<Option<&'a str>>>(
&self,
group_name: &str,
key: &str,
locale: P
) -> Result<Vec<String>, Error>
pub fn get_start_group(&self) -> Option<String>
[src]
pub fn get_start_group(&self) -> Option<String>
pub fn get_string(&self, group_name: &str, key: &str) -> Result<String, Error>
[src]
pub fn get_string(&self, group_name: &str, key: &str) -> Result<String, Error>
pub fn get_string_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<String>, Error>
[src]
pub fn get_string_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<String>, Error>
pub fn get_uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>
[src]
pub fn get_uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>
pub fn get_value(&self, group_name: &str, key: &str) -> Result<String, Error>
[src]
pub fn get_value(&self, group_name: &str, key: &str) -> Result<String, Error>
pub fn has_group(&self, group_name: &str) -> bool
[src]
pub fn has_group(&self, group_name: &str) -> bool
pub fn load_from_data(
&self,
data: &str,
flags: KeyFileFlags
) -> Result<(), Error>
[src]
pub fn load_from_data(
&self,
data: &str,
flags: KeyFileFlags
) -> Result<(), Error>
pub fn load_from_file<P: AsRef<Path>>(
&self,
file: P,
flags: KeyFileFlags
) -> Result<(), Error>
[src]
pub fn load_from_file<P: AsRef<Path>>(
&self,
file: P,
flags: KeyFileFlags
) -> Result<(), Error>
pub fn remove_comment<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
group_name: P,
key: Q
) -> Result<(), Error>
[src]
pub fn remove_comment<'a, 'b, P: Into<Option<&'a str>>, Q: Into<Option<&'b str>>>(
&self,
group_name: P,
key: Q
) -> Result<(), Error>
pub fn remove_group(&self, group_name: &str) -> Result<(), Error>
[src]
pub fn remove_group(&self, group_name: &str) -> Result<(), Error>
pub fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>
[src]
pub fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>
pub fn set_boolean(&self, group_name: &str, key: &str, value: bool)
[src]
pub fn set_boolean(&self, group_name: &str, key: &str, value: bool)
pub 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>
[src]
pub 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>
pub fn set_double(&self, group_name: &str, key: &str, value: f64)
[src]
pub fn set_double(&self, group_name: &str, key: &str, value: f64)
pub fn set_int64(&self, group_name: &str, key: &str, value: i64)
[src]
pub fn set_int64(&self, group_name: &str, key: &str, value: i64)
pub fn set_integer(&self, group_name: &str, key: &str, value: i32)
[src]
pub fn set_integer(&self, group_name: &str, key: &str, value: i32)
pub fn set_list_separator(&self, separator: Char)
[src]
pub fn set_list_separator(&self, separator: Char)
pub fn set_locale_string(
&self,
group_name: &str,
key: &str,
locale: &str,
string: &str
)
[src]
pub fn set_locale_string(
&self,
group_name: &str,
key: &str,
locale: &str,
string: &str
)
pub fn set_string(&self, group_name: &str, key: &str, string: &str)
[src]
pub fn set_string(&self, group_name: &str, key: &str, string: &str)
pub fn set_uint64(&self, group_name: &str, key: &str, value: u64)
[src]
pub fn set_uint64(&self, group_name: &str, key: &str, value: u64)
pub fn set_value(&self, group_name: &str, key: &str, value: &str)
[src]
pub fn set_value(&self, group_name: &str, key: &str, value: &str)
impl KeyFile
[src]
impl KeyFile
pub fn load_from_data_dirs<T: AsRef<Path>>(
&self,
file: T,
flags: KeyFileFlags
) -> Result<PathBuf, Error>
[src]
pub fn load_from_data_dirs<T: AsRef<Path>>(
&self,
file: T,
flags: KeyFileFlags
) -> Result<PathBuf, Error>
pub fn load_from_dirs<T: AsRef<Path>, U: AsRef<Path>>(
&self,
file: T,
search_dirs: &[U],
flags: KeyFileFlags
) -> Result<PathBuf, Error>
[src]
pub fn load_from_dirs<T: AsRef<Path>, U: AsRef<Path>>(
&self,
file: T,
search_dirs: &[U],
flags: KeyFileFlags
) -> Result<PathBuf, Error>
pub fn to_data(&self) -> String
[src]
pub fn to_data(&self) -> String
pub fn get_boolean(&self, group_name: &str, key: &str) -> Result<bool, Error>
[src]
pub fn get_boolean(&self, group_name: &str, key: &str) -> Result<bool, Error>
pub fn has_key(&self, group_name: &str, key: &str) -> Result<bool, Error>
[src]
pub fn has_key(&self, group_name: &str, key: &str) -> Result<bool, Error>
pub fn get_boolean_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<bool>, Error>
[src]
pub fn get_boolean_list(
&self,
group_name: &str,
key: &str
) -> Result<Vec<bool>, Error>
Trait Implementations
impl Debug for KeyFile
[src]
impl Debug for KeyFile
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for KeyFile
[src]
impl PartialEq for KeyFile
fn eq(&self, other: &KeyFile) -> bool
[src]
fn eq(&self, other: &KeyFile) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &KeyFile) -> bool
[src]
fn ne(&self, other: &KeyFile) -> bool
This method tests for !=
.
impl Eq for KeyFile
[src]
impl Eq for KeyFile
impl PartialOrd for KeyFile
[src]
impl PartialOrd for KeyFile
fn partial_cmp(&self, other: &KeyFile) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &KeyFile) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &KeyFile) -> bool
[src]
fn lt(&self, other: &KeyFile) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &KeyFile) -> bool
[src]
fn le(&self, other: &KeyFile) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &KeyFile) -> bool
[src]
fn gt(&self, other: &KeyFile) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &KeyFile) -> bool
[src]
fn ge(&self, other: &KeyFile) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for KeyFile
[src]
impl Ord for KeyFile
fn cmp(&self, other: &KeyFile) -> Ordering
[src]
fn cmp(&self, other: &KeyFile) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for KeyFile
[src]
impl Hash for KeyFile
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for KeyFile
[src]
impl Clone for KeyFile
fn clone(&self) -> KeyFile
[src]
fn clone(&self) -> KeyFile
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl StaticType for KeyFile
[src]
impl StaticType for KeyFile
fn static_type() -> Type
[src]
fn static_type() -> Type
Returns the type identifier of Self
.
impl Default for KeyFile
[src]
impl Default for KeyFile