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
sourceimpl Clone for DynasmError
impl Clone for DynasmError
sourcefn clone(&self) -> DynasmError
fn clone(&self) -> DynasmError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DynasmError
impl Debug for DynasmError
sourceimpl Display for DynasmError
impl Display for DynasmError
sourceimpl Error for DynasmError
impl Error for DynasmError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourceimpl PartialEq<DynasmError> for DynasmError
impl PartialEq<DynasmError> for DynasmError
sourcefn eq(&self, other: &DynasmError) -> bool
fn eq(&self, other: &DynasmError) -> bool
impl Eq for DynasmError
impl StructuralEq for DynasmError
impl StructuralPartialEq for DynasmError
Auto Trait Implementations
impl RefUnwindSafe for DynasmError
impl Send for DynasmError
impl Sync for DynasmError
impl Unpin for DynasmError
impl UnwindSafe for DynasmError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more