pub enum MarshallError {
CodeNotFittingSegment,
DataExceedsLimit(usize),
DataNotFittingSegment,
LibAbsent(LibId),
}
Expand description
Errors write operations
Variants§
CodeNotFittingSegment
attempt to read or write outside of code segment (i.e. at position > 0xFF).
DataExceedsLimit(usize)
data size {0} exceeds limit of 0xFF bytes.
DataNotFittingSegment
attempt to write data which does not fit code segment.
LibAbsent(LibId)
attempt to write library reference for the lib id {0} which is not a part of program segment.
Trait Implementations§
Source§impl Clone for MarshallError
impl Clone for MarshallError
Source§fn clone(&self) -> MarshallError
fn clone(&self) -> MarshallError
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 MarshallError
impl Debug for MarshallError
Source§impl Display for MarshallError
impl Display for MarshallError
Source§impl Error for MarshallError
impl Error for MarshallError
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<CodeEofError> for MarshallError
impl From<CodeEofError> for MarshallError
Source§fn from(v: CodeEofError) -> MarshallError
fn from(v: CodeEofError) -> MarshallError
Converts to this type from the input type.
Source§impl From<MarshallError> for AssemblerError
impl From<MarshallError> for AssemblerError
Source§fn from(v: MarshallError) -> AssemblerError
fn from(v: MarshallError) -> AssemblerError
Converts to this type from the input type.
Source§impl Hash for MarshallError
impl Hash for MarshallError
Source§impl Ord for MarshallError
impl Ord for MarshallError
Source§fn cmp(&self, other: &MarshallError) -> Ordering
fn cmp(&self, other: &MarshallError) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MarshallError
impl PartialEq for MarshallError
Source§impl PartialOrd for MarshallError
impl PartialOrd for MarshallError
impl Copy for MarshallError
impl Eq for MarshallError
impl StructuralPartialEq for MarshallError
Auto Trait Implementations§
impl Freeze for MarshallError
impl RefUnwindSafe for MarshallError
impl Send for MarshallError
impl Sync for MarshallError
impl Unpin for MarshallError
impl UnwindSafe for MarshallError
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.