pub enum ShebangError {
NoShebang,
NonPrintableChars,
ParseFailed,
NoCommand,
IoError(Error),
}Variants§
Trait Implementations§
Source§impl Debug for ShebangError
impl Debug for ShebangError
Source§impl Display for ShebangError
impl Display for ShebangError
Source§impl Error for ShebangError
impl Error for ShebangError
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<Error> for ShebangError
impl From<Error> for ShebangError
Source§impl From<ShebangError> for Error
impl From<ShebangError> for Error
Source§fn from(source: ShebangError) -> Self
fn from(source: ShebangError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShebangError
impl !RefUnwindSafe for ShebangError
impl Send for ShebangError
impl Sync for ShebangError
impl Unpin for ShebangError
impl UnsafeUnpin for ShebangError
impl !UnwindSafe for ShebangError
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