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