-
Notifications
You must be signed in to change notification settings - Fork 0
RuntimeModifiable
A structure that allows the dynamic get/set of a swift structs stored properties.
public protocol RuntimeModifiable: AnyRuntimeModifiable
This exists for the purpose of internal use, but is public for limited use as seen fit.
static var allKeyPaths: [String: PartialKeyPath<Self>]
static var allKeyPathsOrdered: [Int: (String, PartialKeyPath<Self>)]
var writableKeyPaths: [String: PartialKeyPath<Self>]
var readOnlyKeyPaths: [String: PartialKeyPath<Self>]
func get<MemberType>(
_ member: String,
_ type: MemberType.Type? = nil
) -> MemberType?
mutating func set<MemberType>(
_ member: String,
_ newValue: MemberType
)
All the keypaths belonging to the structure.
static var allKeyPaths: [String: PartialKeyPath<Self>]
Every variable marked with let
or var
wil be included in this list. However,
computed variables are not on the list as the API retreiving them doesn't have
enough metadata to do so.
An ordered version of all the keypaths belonging to the structure.
static var allKeyPathsOrdered: [Int: (String, PartialKeyPath<Self>)]
Every variable marked with let
or var
wil be included in this list. However,
computed variables are not on the list as the API retreiving them doesn't have
enough metadata to do so.
This will represent the order the values were declared in, from the top of the structure to the bottom.
All the writable key paths belonging to the structure
var writableKeyPaths: [String: PartialKeyPath<Self>]
A filtered version of allKeyPaths
that only includes ones that are castable
to WritableKeyPath
. This directly corelates to the var
s defined on the
structure.
All the read only keypaths belonging to the structure
var readOnlyKeyPaths: [String: PartialKeyPath<Self>]
A filtered version of allKeyPaths
that only includes ones that aren't castable
to WritableKeyPath
. This directly corelates to the let
s defined on the
structure.
Generated at 2022-06-15T08:34:33-0700 using swift-doc 1.0.0-rc.1.
Types
- ClassDescriptor
- ClassDescriptor.InternalRepresentation
- ClassMetadata
- ClassMetadata.Flags
- ClassMetadata.MetadataStructure
- ContextDescriptor
- ContextDescriptor.Flags
- ContextDescriptor.InternalRepresentation
- ContextDescriptor.Kind
- EnumDescriptor
- EnumDescriptor.InternalRepresentation
- EnumMetadata
- EnumMetadata.MetadataStructure
- ExistentialMetadata
- ExistentialMetadata.Flags
- ExistentialMetadata.InternalRepresentation
- ExistentialMetadata.SpecialProtocol
- ExtensionDescriptor
- ExtensionDescriptor.InternalRepresentation
- FunctionMetadata
- FunctionMetadata.MetadataStructure
- GenericContextDescriptor
- GenericContextDescriptor.GenericParameterDescriptor
- GenericContextDescriptor.GenericPrarameterKind
- GenericContextDescriptor.InternalRepresentation
- GenericRequirementDescriptor
- GenericRequirementDescriptor.Flags
- GenericRequirementDescriptor.GenericRequirementKind
- GenericRequirementDescriptor.GenericRequirementLayoutKind
- GenericRequirementDescriptor.InternalRepresentation
- ModuleDescriptor
- ModuleDescriptor.InternalRepresentation
- PointerAuthentication
- ProtocolDescriptor
- ProtocolDescriptor.Flags
- ProtocolDescriptor.InternalRepresentation
- ProtocolMetadata
- ProtocolMetadata.MetadataStructure
- ProtocolRequirement
- ProtocolRequirement.Flags
- ProtocolRequirement.InternalRepresentation
- ProtocolRequirement.Kind
- RuntimeModifiableBuilder
- SignedPointer
- StructDescriptor
- StructDescriptor.InternalRepresentation
- StructMetadata
- StructMetadata.MetadataStructure
- TupleElementMetadata
- TupleElementMetadata.InternalRepresentation
- TupleMetadata
- TupleMetadata.MetadataStructure
- TupleMetadata.TupleElement
- TypeDescriptor
- TypeDescriptor.Flags
- TypeDescriptor.InternalRepresentation
- TypeDescriptor.TypeReferenceKind
- TypeMetadataKind
- ValueWitnessTable
- ValueWitnessTable.Flags
- ValueWitnessTable.InternalRepresentation
Protocols
Global Typealiases
Global Functions
- _Block_copy(_:)
- _Block_release(_:)
- swift_allocBox(_:)
- swift_allocObject(_:_:_:)
- swift_allocateGenericClassMetadata(_:_:_:)
- swift_allocateGenericValueMetadata(_:_:_:_:)
- swift_arrayAssignWithCopyBackToFront(_:_:_:_:)
- swift_arrayAssignWithCopyFrontToBack(_:_:_:_:)
- swift_arrayAssignWithCopyNoAlias(_:_:_:_:)
- swift_arrayDestroy(_:_:_:)
- swift_arrayInitWithCopy(_:_:_:_:)
- swift_autoDiffAllocateSubContext(_:_:)
- swift_autoDiffCreateLinearMapContext(_:)
- swift_autoDiffProjectTopLevelSubcontext(_:)
- swift_beginAccess(_:_:_:)
- swift_bridgeObjectRelease(_:)
- swift_bridgeObjectRelease_n(_:_:)
- swift_bridgeObjectRetain(_:)
- swift_bridgeObjectRetain_n(_:_:)
- swift_bridgeRelease(_:)
- swift_checkMetadataState(_:_:)
- swift_compareTypeContextDescriptors(_:_:)
- swift_conformsToProtocol(_:_:)
- swift_continuation_await(_:)
- swift_continuation_init(_:_:)
- swift_continuation_resume(_:)
- swift_continuation_throwingResume(_:)
- swift_continuation_throwingResumeWithError(_:_:)
- swift_copyPOD(_:_:_:)
- swift_deallocClassInstance(_:_:_:)
- swift_deallocObject(_:_:_:)
- swift_deallocPartialClassInstance(_:)
- swift_deallocUninitializedObject(_:_:_:)
- swift_defaultActor_deallocate(_:)
- swift_defaultActor_deallocateResilient(_:)
- swift_defaultActor_destroy(_:)
- swift_defaultActor_initialize(_:)
- swift_deletedMethodError()
- swift_distributedActor_remote_initialize(_:)
- swift_dynamicCast(_:_:_:_:_:)
- swift_dynamicCastClass(_:_:)
- swift_dynamicCastClassUnconditional(_:_:_:_:_:)
- swift_dynamicCastMetatype(_:_:)
- swift_dynamicCastMetatypeToObjectConditional(_:)
- swift_dynamicCastMetatypeToObjectUnconditional(_:)
- swift_dynamicCastMetatypeUnconditional(_:_:_:_:_:)
- swift_dynamicCastObjCClass(_:_:)
- swift_dynamicCastObjCClassMetatype(_:_:)
- swift_dynamicCastObjCClassMetatypeUnconditional(_:_:_:_:_:)
- swift_dynamicCastObjCClassUnconditional(_:_:_:_:_:)
- swift_dynamicCastObjCProtocolConditional(_:_:_:)
- swift_dynamicCastObjCProtocolUnconditional(_:_:_:_:_:_:)
- swift_dynamicCastTypeToObjCProtocolConditional(_:_:_:)
- swift_dynamicCastTypeToObjCProtocolUnconditional(_:_:_:_:_:_:)
- swift_dynamicCastUnknownClass(_:_:)
- swift_dynamicCastUnknownClassUnconditional(_:_:_:_:_:)
- swift_endAccess(_:)
- swift_errorInMain(_:)
- swift_errorRelease(_:)
- swift_errorRetain(_:)
- swift_getAssociatedConformanceWitness(_:_:_:_:_:)
- swift_getAssociatedTypeWitness(_:_:_:_:_:)
- swift_getCanonicalPrespecializedGenericMetadata(_:_:_:_:)
- swift_getCanonicalSpecializedMetadata(_:_:_:)
- swift_getDynamicType(_:_:_:)
- swift_getEnumCaseMultiPayload(_:_:)
- swift_getEnumTagSinglePayloadGeneric(_:_:_:_:)
- swift_getExistentialMetatypeMetadata(_:)
- swift_getExistentialTypeMetadata(_:_:_:_:)
- swift_getForeignTypeMetadata(_:)
- swift_getFunctionTypeMetadata(_:_:_:_:)
- swift_initWithTakeBackToFront(_:_:_:_:)
- swift_initWithTakeFrontToBack(_:_:_:_:)
- swift_initWithTakeNoAlias(_:_:_:_:)