pub struct StreamingResult {
pub sections: Vec<String>,
pub version: ScriptVersion,
pub issues: Vec<ParseIssue>,
}Available on crate feature
stream only.Expand description
Result of streaming parser containing owned sections
Fields§
§sections: Vec<String>Parsed sections in document order (simplified)
version: ScriptVersionScript version detected from headers
issues: Vec<ParseIssue>Parse warnings and recoverable errors
Implementations§
Source§impl StreamingResult
impl StreamingResult
Sourcepub const fn version(&self) -> ScriptVersion
pub const fn version(&self) -> ScriptVersion
Get detected script version
Sourcepub fn issues(&self) -> &[ParseIssue]
pub fn issues(&self) -> &[ParseIssue]
Get parsing issues
Trait Implementations§
Source§impl Clone for StreamingResult
impl Clone for StreamingResult
Source§fn clone(&self) -> StreamingResult
fn clone(&self) -> StreamingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamingResult
impl RefUnwindSafe for StreamingResult
impl Send for StreamingResult
impl Sync for StreamingResult
impl Unpin for StreamingResult
impl UnwindSafe for StreamingResult
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