core.internal.cast_

Functions 8

fnbool areClassInfosEqual(scope const ClassInfo a, scope const ClassInfo b) pure nothrow @safe @nogc
private fnvoid * _d_dynamic_cast(To)(const return scope Object o) @trustedDynamic cast from a class object `o` to class or interface `To`, where `To` is a subtype of `o`. Params: o = instance of class To = class or interface that is a subtype of `o` Returns: null if `o` ...
private fnvoid * _d_paint_cast(To)(const return scope Object o)Dynamic cast `o` to final class `To` only one level down Params: o = object that is instance of a class To = final class that is a subclass type of `o` Returns: o if it succeeds, null if it fails
private fnvoid * _d_class_cast_impl(const return scope Object o, const ClassInfo c) pure nothrow @safe @nogc
private fnvoid * _d_class_cast(To)(const return scope Object o)Dynamic cast from a class object o to class type `To`, where `To` is a subclass type of `o`. Params: o = instance of class To = a subclass type of o Returns: null if `o` is null or `To` is not a su...
private fnvoid * _d_interface_cast(To)(void * p) @trustedAttempts to cast interface Object o to class type `To`. Returns o if successful, null if not.
fnvoid * _d_cast(To, From)(From o) @trustedHook that detects the type of cast performed and calls the appropriate function. Params: o = object that is being casted To = type to which the object is being casted Returns: null if the cast fail...
private fnbool _d_isbaseof2(To)(scope ClassInfo oc, scope ref size_t offset)