pub struct ParsedZngFile<'a>(/* private fields */);Implementations§
Source§impl<'a> ParsedZngFile<'a>
impl<'a> ParsedZngFile<'a>
Sourcepub fn parse(path: PathBuf, cfg: Box<dyn RustCfgProvider>) -> ParseResult
pub fn parse(path: PathBuf, cfg: Box<dyn RustCfgProvider>) -> ParseResult
Parse a .zng file and return both the spec and list of all processed files.
Sourcepub fn parse_str(text: &str, cfg: impl RustCfgProvider + 'static) -> ParseResult
pub fn parse_str(text: &str, cfg: impl RustCfgProvider + 'static) -> ParseResult
Parse a .zng file from a string. Mainly useful for testing.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ParsedZngFile<'a>
impl<'a> RefUnwindSafe for ParsedZngFile<'a>
impl<'a> Send for ParsedZngFile<'a>
impl<'a> Sync for ParsedZngFile<'a>
impl<'a> Unpin for ParsedZngFile<'a>
impl<'a> UnsafeUnpin for ParsedZngFile<'a>
impl<'a> UnwindSafe for ParsedZngFile<'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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more