pub struct SystemdParser { /* private fields */ }Implementations§
Source§impl SystemdParser
impl SystemdParser
pub fn new() -> Self
pub fn parse(&self, text: &str) -> SystemdUnit
pub fn update_document(&self, uri: &Uri, text: &str)
pub fn get_parsed_document(&self, uri: &Uri) -> Option<SystemdUnit>
pub fn get_document_text(&self, uri: &Uri) -> Option<String>
pub fn get_word_at_position( &self, unit: &SystemdUnit, position: &Position, ) -> Option<String>
pub fn get_section_header_at_position( &self, unit: &SystemdUnit, position: &Position, ) -> Option<String>
pub fn get_section_at_line<'a>( &self, unit: &'a SystemdUnit, line: u32, ) -> Option<&'a SystemdSection>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SystemdParser
impl !RefUnwindSafe for SystemdParser
impl Send for SystemdParser
impl Sync for SystemdParser
impl Unpin for SystemdParser
impl UnwindSafe for SystemdParser
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