pub enum BoardError {
TooManyRows,
TooManyCols,
InvalidChar(String),
Regex(Error),
InvalidLength,
}Expand description
error type for the Vestaboard board module
BoardError::TooManyRowsif there are too many rows in the inputBoardError::TooManyColsif there are too many columns in the inputBoardError::InvalidCharif there is an invalid character in the inputBoardError::Regexif there is an error with regex parsing of board dataBoardError::InvalidLengthif the length of the input is invalid
Variants§
TooManyRows
too many rows in the input
TooManyCols
too many columns in the input
InvalidChar(String)
invalid character in the input, see the wrapped string for the invalid character
Regex(Error)
regex error (usually while parsing replacement of board data), see the wrapped regex::Error for more details
InvalidLength
invalid board length
Trait Implementations§
Source§impl Debug for BoardError
impl Debug for BoardError
Source§impl Display for BoardError
impl Display for BoardError
Source§impl Error for BoardError
impl Error for BoardError
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()
Source§impl From<BoardError> for RWApiError
Available on crate feature rw only.
impl From<BoardError> for RWApiError
Available on crate feature
rw only.Source§fn from(source: BoardError) -> Self
fn from(source: BoardError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BoardError
impl RefUnwindSafe for BoardError
impl Send for BoardError
impl Sync for BoardError
impl Unpin for BoardError
impl UnsafeUnpin for BoardError
impl UnwindSafe for BoardError
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