pub struct MultiParseResult {
pub results: Vec<ParseResult>,
}Expand description
The result of a lenient multi-song parse.
When using parse_multi_lenient, the parser splits the input at {new_song}
boundaries and parses each segment independently. Each entry in results
contains the lenient parse result for one song segment.
Fields§
§results: Vec<ParseResult>The parsed songs, one per segment between {new_song} boundaries.
Each entry is the lenient parse result for that song segment.
Implementations§
Source§impl MultiParseResult
impl MultiParseResult
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if any errors were encountered in any song.
Sourcepub fn all_errors(&self) -> Vec<&ParseError>
pub fn all_errors(&self) -> Vec<&ParseError>
Returns all errors from all songs.
Trait Implementations§
Source§impl Clone for MultiParseResult
impl Clone for MultiParseResult
Source§fn clone(&self) -> MultiParseResult
fn clone(&self) -> MultiParseResult
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 MultiParseResult
impl RefUnwindSafe for MultiParseResult
impl Send for MultiParseResult
impl Sync for MultiParseResult
impl Unpin for MultiParseResult
impl UnsafeUnpin for MultiParseResult
impl UnwindSafe for MultiParseResult
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