// TargetContains implements Targetable by returning true if the given other
// address is equal to the receiver.
TargetContains implements Targetable by returning true if the given other
address is equal to the receiver.
// TargetContains implements Targetable by returning true if the given other // address is equal to the receiver .
func (r AbsResourceInstance) TargetContains(other Targetable) bool {
	switch to := other.(type) {
	case AbsResourceInstance:
		return to.String() == r.String()
	case ConfigResource:
		return to.String() == r.String()
	case AbsResource:
		return to.String() == r.String()
	default:
		return false
	}
}
func ( r AbsResourceInstance ) TargetContains ( other Targetable ) bool { switch to := other . ( type ) { case AbsResourceInstance : return to . String ( ) == r . String ( ) case ConfigResource : return to . String ( ) == r . String ( ) case AbsResource : return to . String ( ) == r . String ( ) default : return false } }
TargetContains implements Targetable by returning true if the given other
address is equal to the receiver.
TargetContains implements Targetable by returning true if the given other address is equal to the receiver .
// while we currently don't start with an AbsResourceInstance as a target // address, check all resource types for consistency. // We'll use our stringification as a cheat-ish way to test for equality.