pub struct Pkl<'a> { /* private fields */ }
Expand description
The Pkl
struct represents the main interface for working with PKL data.
Implementations§
Source§impl<'a> Pkl<'a>
impl<'a> Pkl<'a>
Sourcepub fn generate_ast(
&mut self,
source: &'a str,
) -> PklResult<Vec<PklStatement<'a>>>
pub fn generate_ast( &mut self, source: &'a str, ) -> PklResult<Vec<PklStatement<'a>>>
Sourcepub fn get_string(&self, name: &'a str) -> PklResult<&'a str>
pub fn get_string(&self, name: &'a str) -> PklResult<&'a str>
Trait Implementations§
impl<'a> StructuralPartialEq for Pkl<'a>
Auto Trait Implementations§
impl<'a> Freeze for Pkl<'a>
impl<'a> RefUnwindSafe for Pkl<'a>
impl<'a> Send for Pkl<'a>
impl<'a> Sync for Pkl<'a>
impl<'a> Unpin for Pkl<'a>
impl<'a> UnwindSafe for Pkl<'a>
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