pub struct ParseResult<T> {
pub result: T,
pub warnings: Vec<PuzWarning>,
}Expand description
Result type for parsing that includes warnings.
This is returned by the main parse function and contains
both the successfully parsed puzzle and any warnings that occurred during parsing.
Fields§
§result: TThe successfully parsed puzzle
warnings: Vec<PuzWarning>Any warnings that occurred during parsing
Implementations§
Source§impl<T> ParseResult<T>
impl<T> ParseResult<T>
pub fn new(result: T) -> Self
pub fn with_warnings(result: T, warnings: Vec<PuzWarning>) -> Self
pub fn add_warning(&mut self, warning: PuzWarning)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ParseResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParseResult<T>where
T: RefUnwindSafe,
impl<T> Send for ParseResult<T>where
T: Send,
impl<T> Sync for ParseResult<T>where
T: Sync,
impl<T> Unpin for ParseResult<T>where
T: Unpin,
impl<T> UnwindSafe for ParseResult<T>where
T: UnwindSafe,
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