Skip to main content

CopyError

Trait CopyError 

Source
pub trait CopyError {
    // Required method
    fn copy_error_impl(
        &mut self,
        dest_arena: &mut TypeArena,
        clone_state: &mut CloneState,
    );
}
Expand description

Faithful realization of the if constexpr type switch in copyError.

One impl per error kind, each carrying exactly the branch body from the C++ source.

Required Methods§

Source

fn copy_error_impl( &mut self, dest_arena: &mut TypeArena, clone_state: &mut CloneState, )

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl CopyError for AmbiguousFunctionCall

Source§

impl CopyError for BuiltInTypeFunctionError

Source§

impl CopyError for CannotAssignToNever

Source§

impl CopyError for CannotCallNonFunction

Source§

impl CopyError for CannotCheckDynamicStringFormatCalls

Source§

impl CopyError for CannotCompareUnrelatedTypes

Source§

impl CopyError for CannotExtendTable

Source§

impl CopyError for CannotInferBinaryOperation

Source§

impl CopyError for CheckedFunctionCallError

Source§

impl CopyError for CheckedFunctionIncorrectArgs

Source§

impl CopyError for CodeTooComplex

Source§

impl CopyError for ConstraintSolvingIncompleteError

Source§

impl CopyError for CountMismatch

Source§

impl CopyError for DeprecatedApiUsed

Source§

impl CopyError for DuplicateGenericParameter

Source§

impl CopyError for DuplicateTypeDefinition

Source§

impl CopyError for DynamicPropertyLookupOnExternTypesUnsafe

Source§

impl CopyError for ExplicitFunctionAnnotationRecommended

Source§

impl CopyError for ExtraInformation

Source§

impl CopyError for FunctionDoesNotTakeSelf

Source§

impl CopyError for FunctionExitsWithoutReturning

Source§

impl CopyError for FunctionRequiresSelf

Source§

impl CopyError for GenericBoundsMismatch

Source§

impl CopyError for GenericError

Source§

impl CopyError for GenericTypeCountMismatch

Source§

impl CopyError for GenericTypePackCountMismatch

Source§

impl CopyError for IllegalRequire

Source§

impl CopyError for IncorrectGenericParameterCount

Source§

impl CopyError for InstantiateGenericsOnNonFunction

Source§

impl CopyError for InternalError

Source§

impl CopyError for MissingProperties

Source§

impl CopyError for MissingUnionProperty

Source§

impl CopyError for ModuleHasCyclicDependency

Source§

impl CopyError for MultipleNonviableOverloads

Source§

impl CopyError for NonStrictFunctionDefinitionError

Source§

impl CopyError for NormalizationTooComplex

Source§

impl CopyError for NotATable

Source§

impl CopyError for OccursCheckFailed

Source§

impl CopyError for OnlyTablesCanHaveMethods

Source§

impl CopyError for OptionalValueAccess

Source§

impl CopyError for PackWhereClauseNeeded

Source§

impl CopyError for PropertyAccessViolation

Source§

impl CopyError for RecursiveRestraintViolation

Source§

impl CopyError for ReservedIdentifier

Source§

impl CopyError for SwappedGenericTypeParameter

Source§

impl CopyError for SyntaxError

Source§

impl CopyError for TypeInstantiationCountMismatch

Source§

impl CopyError for TypeMismatch

Source§

impl CopyError for TypePackMismatch

Source§

impl CopyError for TypesAreUnrelated

Source§

impl CopyError for UnappliedTypeFunction

Source§

impl CopyError for UnexpectedArrayLikeTableItem

Source§

impl CopyError for UnexpectedTypeInSubtyping

Source§

impl CopyError for UnexpectedTypePackInSubtyping

Source§

impl CopyError for UnificationTooComplex

Source§

impl CopyError for UninhabitedTypeFunction

Source§

impl CopyError for UninhabitedTypePackFunction

Source§

impl CopyError for UnknownPropButFoundLikeProp

Source§

impl CopyError for UnknownProperty

Source§

impl CopyError for UnknownRequire

Source§

impl CopyError for UnknownSymbol

Source§

impl CopyError for UserDefinedTypeFunctionError

Source§

impl CopyError for WhereClauseNeeded