pub enum PtxParseError {
UnexpectedEof {
context: &'static str,
line: usize,
},
InvalidDirective {
line: usize,
message: String,
},
InvalidFunctionHeader {
line: usize,
message: String,
},
InvalidInstruction {
line: usize,
message: String,
},
InvalidGlobal {
line: usize,
message: String,
},
}Expand description
Errors that can occur while parsing PTX source text.
Variants§
Trait Implementations§
Source§impl Debug for PtxParseError
impl Debug for PtxParseError
Source§impl Display for PtxParseError
impl Display for PtxParseError
Source§impl Error for PtxParseError
impl Error for PtxParseError
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()
Source§impl PartialEq for PtxParseError
impl PartialEq for PtxParseError
impl Eq for PtxParseError
impl StructuralPartialEq for PtxParseError
Auto Trait Implementations§
impl Freeze for PtxParseError
impl RefUnwindSafe for PtxParseError
impl Send for PtxParseError
impl Sync for PtxParseError
impl Unpin for PtxParseError
impl UnwindSafe for PtxParseError
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