pub enum PrintingError {
TooManyCharacters(LengthErrorData),
TooLittleCharacters(LengthErrorData),
FailedToGetTerminalDimensions(String),
GridLargerThanTerminal,
NonRectangularGrid,
GridDimensionsNotDefined,
TerminalDimensionsNotDefined,
OriginNotDefined,
}Expand description
These are the possible ways the program can fail.
Each error will contain ‘ErrorData’ which holds the expected and outcome results in the event of the error.
Variants§
TooManyCharacters(LengthErrorData)
TooLittleCharacters(LengthErrorData)
FailedToGetTerminalDimensions(String)
GridLargerThanTerminal
NonRectangularGrid
GridDimensionsNotDefined
TerminalDimensionsNotDefined
OriginNotDefined
Trait Implementations§
Source§impl Clone for PrintingError
impl Clone for PrintingError
Source§fn clone(&self) -> PrintingError
fn clone(&self) -> PrintingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrintingError
impl Debug for PrintingError
Source§impl Display for PrintingError
impl Display for PrintingError
impl Eq for PrintingError
Source§impl Error for PrintingError
impl Error for PrintingError
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 PrintingError
impl RefUnwindSafe for PrintingError
impl Send for PrintingError
impl Sync for PrintingError
impl Unpin for PrintingError
impl UnsafeUnpin for PrintingError
impl UnwindSafe for PrintingError
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