#[repr(i32)]pub enum SigWriteCode {
Ok = 0,
NoPrototype = 1,
ArgRange = 2,
Build = 3,
Apply = 4,
}Expand description
The outcome of a signature-surgery call (func_set_rettype, func_set_argtype,
func_rename_arg, func_set_cc, func_prepend_this).
The complete closed set those calls return: rebuild_and_apply and the pre-failure checks
ahead of it never leak a raw tinfo_code_t, unlike the til member-edit codes (see
crate::TEDIT_NO_TYPE).
Variants§
Ok = 0
A prototype-surgery edit succeeded.
NoPrototype = 1
The address carries no function type to edit.
ArgRange = 2
A parameter index was past the last parameter.
Build = 3
A replacement-type recipe did not build.
Apply = 4
create_func or apply_tinfo rejected the rebuilt signature.
Trait Implementations§
Source§impl Clone for SigWriteCode
impl Clone for SigWriteCode
impl Copy for SigWriteCode
Source§impl Debug for SigWriteCode
impl Debug for SigWriteCode
impl Eq for SigWriteCode
Source§impl From<SigWriteCode> for i32
impl From<SigWriteCode> for i32
Source§fn from(enum_value: SigWriteCode) -> Self
fn from(enum_value: SigWriteCode) -> Self
Converts to this type from the input type.
Source§impl Hash for SigWriteCode
impl Hash for SigWriteCode
Source§impl PartialEq for SigWriteCode
impl PartialEq for SigWriteCode
impl StructuralPartialEq for SigWriteCode
Source§impl TryFrom<i32> for SigWriteCode
impl TryFrom<i32> for SigWriteCode
Source§type Error = TryFromPrimitiveError<SigWriteCode>
type Error = TryFromPrimitiveError<SigWriteCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for SigWriteCode
impl TryFromPrimitive for SigWriteCode
const NAME: &'static str = "SigWriteCode"
type Primitive = i32
type Error = TryFromPrimitiveError<SigWriteCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl VariantArray for SigWriteCode
impl VariantArray for SigWriteCode
Auto Trait Implementations§
impl Freeze for SigWriteCode
impl RefUnwindSafe for SigWriteCode
impl Send for SigWriteCode
impl Sync for SigWriteCode
impl Unpin for SigWriteCode
impl UnsafeUnpin for SigWriteCode
impl UnwindSafe for SigWriteCode
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