pub enum GridError {
InvalidDirection(String),
WordError(WordError),
}Expand description
GridError represents errors that can occur during operations on the crossword Grid.
These errors typically relate to invalid directions, word placement issues, or underlying WordErrors.
Variants§
InvalidDirection(String)
Indicates that an invalid or unsupported direction was provided for a grid operation.
WordError(WordError)
Wraps a WordError that occurred during a grid operation, providing more context.
Trait Implementations§
Source§impl Display for GridError
Implements the Display trait for GridError, allowing errors to be formatted as user-friendly strings.
impl Display for GridError
Implements the Display trait for GridError, allowing errors to be formatted as user-friendly strings.
Source§impl Error for GridError
Implements the Error trait for GridError, providing a common interface for error handling.
impl Error for GridError
Implements the Error trait for GridError, providing a common interface for error handling.
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GridError
impl RefUnwindSafe for GridError
impl Send for GridError
impl Sync for GridError
impl Unpin for GridError
impl UnsafeUnpin for GridError
impl UnwindSafe for GridError
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