pub enum NcsAsmError {
Read(NcsReadError),
InvalidExtra {
offset: usize,
opcode: NcsOpcode,
auxcode: NcsAuxCode,
message: String,
},
Parse {
line: usize,
message: String,
},
}Expand description
Errors returned while rendering or parsing NCS asm text.
Variants§
Read(NcsReadError)
Binary decoding failed before text rendering could begin.
InvalidExtra
One instruction payload did not match the expected opcode shape.
Fields
§
auxcode: NcsAuxCodeAuxcode whose extra data was malformed.
Parse
One line of textual asm could not be parsed.
Trait Implementations§
Source§impl Clone for NcsAsmError
impl Clone for NcsAsmError
Source§fn clone(&self) -> NcsAsmError
fn clone(&self) -> NcsAsmError
Returns a duplicate of the value. Read more
1.0.0 · 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 NcsAsmError
impl Debug for NcsAsmError
Source§impl Display for NcsAsmError
impl Display for NcsAsmError
Source§impl Error for NcsAsmError
impl Error for NcsAsmError
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 From<NcsReadError> for NcsAsmError
impl From<NcsReadError> for NcsAsmError
Source§fn from(value: NcsReadError) -> Self
fn from(value: NcsReadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for NcsAsmError
impl PartialEq for NcsAsmError
impl Eq for NcsAsmError
impl StructuralPartialEq for NcsAsmError
Auto Trait Implementations§
impl Freeze for NcsAsmError
impl RefUnwindSafe for NcsAsmError
impl Send for NcsAsmError
impl Sync for NcsAsmError
impl Unpin for NcsAsmError
impl UnsafeUnpin for NcsAsmError
impl UnwindSafe for NcsAsmError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.