[][src]Struct glib::KeyFile

pub struct KeyFile(_);

Methods

impl KeyFile[src]

pub fn new() -> KeyFile[src]

pub fn get_comment(
    &self,
    group_name: Option<&str>,
    key: &str
) -> Result<GString, Error>
[src]

pub fn get_double(&self, group_name: &str, key: &str) -> Result<f64, Error>[src]

pub fn get_double_list(
    &self,
    group_name: &str,
    key: &str
) -> Result<Vec<f64>, Error>
[src]

pub fn get_groups(&self) -> (Vec<GString>, usize)[src]

pub fn get_int64(&self, group_name: &str, key: &str) -> Result<i64, Error>[src]

pub fn get_integer(&self, group_name: &str, key: &str) -> Result<i32, Error>[src]

pub fn get_integer_list(
    &self,
    group_name: &str,
    key: &str
) -> Result<Vec<i32>, Error>
[src]

pub fn get_keys(&self, group_name: &str) -> Result<(Vec<GString>, usize), Error>[src]

pub fn get_locale_for_key(
    &self,
    group_name: &str,
    key: &str,
    locale: Option<&str>
) -> Option<GString>
[src]

pub fn get_start_group(&self) -> Option<GString>[src]

pub fn get_uint64(&self, group_name: &str, key: &str) -> Result<u64, Error>[src]

pub fn get_value(&self, group_name: &str, key: &str) -> Result<GString, Error>[src]

pub fn has_group(&self, group_name: &str) -> bool[src]

pub fn load_from_bytes(
    &self,
    bytes: &Bytes,
    flags: KeyFileFlags
) -> Result<(), Error>
[src]

pub fn load_from_data(
    &self,
    data: &str,
    flags: KeyFileFlags
) -> Result<(), Error>
[src]

pub fn load_from_file<P: AsRef<Path>>(
    &self,
    file: P,
    flags: KeyFileFlags
) -> Result<(), Error>
[src]

pub fn remove_comment(
    &self,
    group_name: Option<&str>,
    key: Option<&str>
) -> Result<(), Error>
[src]

pub fn remove_group(&self, group_name: &str) -> Result<(), Error>[src]

pub fn remove_key(&self, group_name: &str, key: &str) -> Result<(), Error>[src]

pub fn set_boolean(&self, group_name: &str, key: &str, value: bool)[src]

pub fn set_comment(
    &self,
    group_name: Option<&str>,
    key: Option<&str>,
    comment: &str
) -> Result<(), Error>
[src]

pub fn set_double(&self, group_name: &str, key: &str, value: f64)[src]

pub fn set_int64(&self, group_name: &str, key: &str, value: i64)[src]

pub fn set_integer(&self, group_name: &str, key: &str, value: i32)[src]

pub fn set_list_separator(&self, separator: Char)[src]

pub fn set_locale_string(
    &self,
    group_name: &str,
    key: &str,
    locale: &str,
    string: &str
)
[src]

pub fn set_string(&self, group_name: &str, key: &str, string: &str)[src]

pub fn set_uint64(&self, group_name: &str, key: &str, value: u64)[src]

pub fn set_value(&self, group_name: &str, key: &str, value: &str)[src]

impl KeyFile[src]

pub fn save_to_file<T: AsRef<Path>>(&self, filename: T) -> Result<(), Error>[src]

pub fn load_from_data_dirs<T: AsRef<Path>>(
    &self,
    file: T,
    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>
[src]

pub fn to_data(&self) -> GString[src]

pub fn get_boolean(&self, group_name: &str, key: &str) -> Result<bool, Error>[src]

pub fn has_key(&self, group_name: &str, key: &str) -> Result<bool, Error>[src]

pub fn get_boolean_list(
    &self,
    group_name: &str,
    key: &str
) -> Result<Vec<bool>, Error>
[src]

pub fn get_string(&self, group_name: &str, key: &str) -> Result<GString, Error>[src]

pub fn get_string_list(
    &self,
    group_name: &str,
    key: &str
) -> Result<Vec<GString>, Error>
[src]

pub fn get_locale_string(
    &self,
    group_name: &str,
    key: &str,
    locale: Option<&str>
) -> Result<GString, Error>
[src]

pub fn get_locale_string_list(
    &self,
    group_name: &str,
    key: &str,
    locale: Option<&str>
) -> Result<Vec<GString>, Error>
[src]

Trait Implementations

impl Clone for KeyFile[src]

impl Debug for KeyFile[src]

impl Default for KeyFile[src]

impl Eq for KeyFile[src]

impl Hash for KeyFile[src]

impl Ord for KeyFile[src]

impl PartialEq<KeyFile> for KeyFile[src]

impl PartialOrd<KeyFile> for KeyFile[src]

impl StaticType for KeyFile[src]

impl StructuralEq for KeyFile[src]

impl StructuralPartialEq for KeyFile[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyFile

impl !Send for KeyFile

impl !Sync for KeyFile

impl Unpin for KeyFile

impl UnwindSafe for KeyFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *const GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GList> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<'a, T> ToGlibContainerFromSlice<'a, *mut GPtrArray> for T where
    T: GlibPtrDefault + ToGlibPtr<'a, <T as GlibPtrDefault>::GlibType>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToValue for T where
    T: SetValue + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.