Enum pygmentize::PygmentizeError
source · pub enum PygmentizeError {
Process(Error),
NotFound(Error),
InvalidUtf8(FromUtf8Error),
Pygmentize(ExitStatus, String),
}
Variants§
Process(Error)
NotFound(Error)
pygmentize was not found or not installed.
The path to the pygmentize
binary
If pygmentize
is installed but not added to
the system PATH (e.g. if it is installed in a
virtual environment), then it can manually be
set by calling pygmentize::
set_bin_path()
.
InvalidUtf8(FromUtf8Error)
Pygmentize(ExitStatus, String)
The pygmentize binary returned an error.
Trait Implementations§
source§impl Debug for PygmentizeError
impl Debug for PygmentizeError
source§impl Display for PygmentizeError
impl Display for PygmentizeError
source§impl Error for PygmentizeError
impl Error for PygmentizeError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for PygmentizeError
impl Send for PygmentizeError
impl Sync for PygmentizeError
impl Unpin for PygmentizeError
impl !UnwindSafe for PygmentizeError
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