Optional circuit name
Optional module name
TargetTokens to represent the target in a circuit and module
Appends a target token to tokens, asserts legality
Optional circuit name
Optional circuit name
Converts this Target into a CompleteTarget
Checks whether this is inside of other
Checks whether this is inside of other
If legal, convert this Target into a CompleteTarget
If complete and an instance target, return the instance and ofmodule
If complete, return this GenericTarget's path
If complete and a reference, return the reference and subcomponents
Checks whether the component is legal and complete, meaning the circuitOpt and moduleOpt are nonEmpty and all Instance(_) are followed by OfModule(_)
Checks whether the component is legal (incomplete is ok)
Whether the target is directly instantiated in its root module
Whether the target is directly instantiated in its root module
Returns a new GenericTarget with new values
Optional module name
Optional module name
Optionally tries to append token to tokens, fails return is not a legal Target
Returns the instance hierarchy path, if one exists
Pretty serialization, ideal for error messages.
Pretty serialization, ideal for error messages. Cannot be deserialized.
Human-readable serialization
Removes n number of target tokens from the right side of tokens
Share root module
Share root module
Converts this Target into a GenericTarget
Converts this Target into either a CircuitName, ModuleName, or ComponentName
TargetTokens to represent the target in a circuit and module
TargetTokens to represent the target in a circuit and module
Converts this Target into a CompleteTarget, or if it can't, return original Target
Represents incomplete or non-standard Targets
Optional circuit name
Optional module name
TargetTokens to represent the target in a circuit and module