#[repr(i32)]pub enum TypeApplyCode {
Ok = 0,
ErrInput = 1,
ErrApply = 2,
}Expand description
The outcome of a whole-item type apply (apply_type_decl, apply_named_type, clear_type,
apply_type_recipe, tinfo_apply).
The complete closed set those calls return: none of them ever forward a raw tinfo_code_t.
Variants§
Ok = 0
Result of a successful type apply.
ErrInput = 1
A bad input to a type apply: an unparseable declaration, a named type that does not exist, or a malformed recipe.
ErrApply = 2
apply_tinfo rejected the parsed/resolved/built type at the address.
Trait Implementations§
Source§impl Clone for TypeApplyCode
impl Clone for TypeApplyCode
impl Copy for TypeApplyCode
Source§impl Debug for TypeApplyCode
impl Debug for TypeApplyCode
impl Eq for TypeApplyCode
Source§impl From<TypeApplyCode> for i32
impl From<TypeApplyCode> for i32
Source§fn from(enum_value: TypeApplyCode) -> Self
fn from(enum_value: TypeApplyCode) -> Self
Converts to this type from the input type.
Source§impl Hash for TypeApplyCode
impl Hash for TypeApplyCode
Source§impl PartialEq for TypeApplyCode
impl PartialEq for TypeApplyCode
impl StructuralPartialEq for TypeApplyCode
Source§impl TryFrom<i32> for TypeApplyCode
impl TryFrom<i32> for TypeApplyCode
Source§type Error = TryFromPrimitiveError<TypeApplyCode>
type Error = TryFromPrimitiveError<TypeApplyCode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for TypeApplyCode
impl TryFromPrimitive for TypeApplyCode
const NAME: &'static str = "TypeApplyCode"
type Primitive = i32
type Error = TryFromPrimitiveError<TypeApplyCode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Source§impl VariantArray for TypeApplyCode
impl VariantArray for TypeApplyCode
Auto Trait Implementations§
impl Freeze for TypeApplyCode
impl RefUnwindSafe for TypeApplyCode
impl Send for TypeApplyCode
impl Sync for TypeApplyCode
impl Unpin for TypeApplyCode
impl UnsafeUnpin for TypeApplyCode
impl UnwindSafe for TypeApplyCode
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