#[non_exhaustive]pub enum LinkError {
UnknownLabel {
label: DynamicLabel,
},
LabelAlreadyBound {
label: DynamicLabel,
},
LabelUnbound {
label: DynamicLabel,
},
CrossBlockRelocationUnsupported {
from_block: BlockId,
to_block: BlockId,
label: DynamicLabel,
},
}Expand description
Errors produced by Linker.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UnknownLabel
Label was not created by this linker instance.
Fields
§
label: DynamicLabelLabel id.
LabelAlreadyBound
Label was already bound once.
Fields
§
label: DynamicLabelLabel id.
LabelUnbound
Label is referenced but not bound.
Fields
§
label: DynamicLabelLabel id.
CrossBlockRelocationUnsupported
Cross-block relocations are unsupported by patch_relocation.
Trait Implementations§
Source§impl From<LinkError> for LinkPatchError
impl From<LinkError> for LinkPatchError
impl Copy for LinkError
impl Eq for LinkError
impl StructuralPartialEq for LinkError
Auto Trait Implementations§
impl Freeze for LinkError
impl RefUnwindSafe for LinkError
impl Send for LinkError
impl Sync for LinkError
impl Unpin for LinkError
impl UnsafeUnpin for LinkError
impl UnwindSafe for LinkError
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