Enum dynasmrt::DynasmError
source · pub enum DynasmError {
CheckFailed,
DuplicateLabel(LabelKind),
UnknownLabel(LabelKind),
ImpossibleRelocation(TargetKind),
}
Expand description
The various error types generated by dynasm functions.
Variants§
CheckFailed
A check (like Modifier::check
or Modifier::check_exact
) that failed
DuplicateLabel(LabelKind)
A duplicate label dynamic/global label was defined
UnknownLabel(LabelKind)
An unknown label
ImpossibleRelocation(TargetKind)
The user tried to declare a relocation too far away from the label it targets
Trait Implementations§
source§impl Clone for DynasmError
impl Clone for DynasmError
source§fn clone(&self) -> DynasmError
fn clone(&self) -> DynasmError
Returns a copy 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 DynasmError
impl Debug for DynasmError
source§impl Display for DynasmError
impl Display for DynasmError
source§impl Error for DynasmError
impl Error for DynasmError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
source§impl PartialEq for DynasmError
impl PartialEq for DynasmError
source§fn eq(&self, other: &DynasmError) -> bool
fn eq(&self, other: &DynasmError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DynasmError
impl StructuralPartialEq for DynasmError
Auto Trait Implementations§
impl Freeze for DynasmError
impl RefUnwindSafe for DynasmError
impl Send for DynasmError
impl Sync for DynasmError
impl Unpin for DynasmError
impl UnwindSafe for DynasmError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)