pub struct ExtensionParser {
state: ExtensionParserState,
extensions: SimpleExtensions,
}
Expand description
The parser for the extension section of the Substrait file format.
This is responsible for parsing the extension section of the file, which contains the extension URIs and declarations. Note that this parser does not parse the header; otherwise, this is symmetric with the SimpleExtensions::write method.
Fields§
§state: ExtensionParserState
§extensions: SimpleExtensions
Implementations§
Source§impl ExtensionParser
impl ExtensionParser
pub fn parse_line( &mut self, line: IndentedLine<'_>, ) -> Result<(), ExtensionParseError>
fn parse_subsection( &mut self, line: IndentedLine<'_>, ) -> Result<(), ExtensionParseError>
fn parse_extension_uris( &mut self, line: IndentedLine<'_>, ) -> Result<(), ExtensionParseError>
fn parse_declarations( &mut self, line: IndentedLine<'_>, extension_kind: ExtensionKind, ) -> Result<(), ExtensionParseError>
pub fn extensions(&self) -> &SimpleExtensions
pub fn state(&self) -> ExtensionParserState
Trait Implementations§
Source§impl Debug for ExtensionParser
impl Debug for ExtensionParser
Auto Trait Implementations§
impl Freeze for ExtensionParser
impl RefUnwindSafe for ExtensionParser
impl Send for ExtensionParser
impl Sync for ExtensionParser
impl Unpin for ExtensionParser
impl UnwindSafe for ExtensionParser
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