pub struct HyprlandConfig {
pub content: Vec<String>,
pub sections: HashMap<String, (usize, usize)>,
pub sourced_content: Vec<Vec<String>>,
pub sourced_sections: HashMap<String, (usize, usize)>,
pub sourced_paths: Vec<String>,
}Fields§
§content: Vec<String>§sections: HashMap<String, (usize, usize)>§sourced_content: Vec<Vec<String>>§sourced_sections: HashMap<String, (usize, usize)>§sourced_paths: Vec<String>Implementations§
Source§impl HyprlandConfig
impl HyprlandConfig
pub fn new() -> Self
pub fn parse(&mut self, config_str: &str, sourced: bool)
pub fn add_entry(&mut self, category: &str, entry: &str)
pub fn add_entry_headless(&mut self, key: &str, value: &str)
pub fn add_sourced(&mut self, config: Vec<String>)
pub fn parse_color(&self, color_str: &str) -> Option<(f32, f32, f32, f32)>
pub fn format_color( &self, red: f32, green: f32, blue: f32, alpha: f32, ) -> String
Trait Implementations§
Source§impl Debug for HyprlandConfig
impl Debug for HyprlandConfig
Source§impl Default for HyprlandConfig
impl Default for HyprlandConfig
Source§fn default() -> HyprlandConfig
fn default() -> HyprlandConfig
Returns the “default value” for a type. Read more
Source§impl Display for HyprlandConfig
impl Display for HyprlandConfig
Source§impl PartialEq for HyprlandConfig
impl PartialEq for HyprlandConfig
Auto Trait Implementations§
impl Freeze for HyprlandConfig
impl RefUnwindSafe for HyprlandConfig
impl Send for HyprlandConfig
impl Sync for HyprlandConfig
impl Unpin for HyprlandConfig
impl UnwindSafe for HyprlandConfig
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