func (e PathElement) Equals(rhs PathElement) bool {
	if e.FieldName != nil {
		if rhs.FieldName == nil {
			return false
		}
		return *e.FieldName == *rhs.FieldName
	} else if rhs.FieldName != nil {
		return false
	}
	if e.Key != nil {
		if rhs.Key == nil {
			return false
		}
		return e.Key.Equals(*rhs.Key)
	} else if rhs.Key != nil {
		return false
	}
	if e.Value != nil {
		if rhs.Value == nil {
			return false
		}
		return value.Equals(*e.Value, *rhs.Value)
	} else if rhs.Value != nil {
		return false
	}
	if e.Index != nil {
		if rhs.Index == nil {
			return false
		}
		return *e.Index == *rhs.Index
	} else if rhs.Index != nil {
		return false
	}
	return true
}
// Equals returns true if both path elements are equal.
Equals returns true if both path elements are equal.
// Equals returns true if both path elements are equal .
func (e PathElement) Equals(rhs PathElement) bool {
	if e.FieldName != nil {
		if rhs.FieldName == nil {
			return false
		}
		return *e.FieldName == *rhs.FieldName
	} else if rhs.FieldName != nil {
		return false
	}
	if e.Key != nil {
		if rhs.Key == nil {
			return false
		}
		return e.Key.Equals(*rhs.Key)
	} else if rhs.Key != nil {
		return false
	}
	if e.Value != nil {
		if rhs.Value == nil {
			return false
		}
		return value.Equals(*e.Value, *rhs.Value)
	} else if rhs.Value != nil {
		return false
	}
	if e.Index != nil {
		if rhs.Index == nil {
			return false
		}
		return *e.Index == *rhs.Index
	} else if rhs.Index != nil {
		return false
	}
	return true
}
func ( e PathElement ) Equals ( rhs PathElement ) bool { if e . FieldName != nil { if rhs . FieldName == nil { return false } return * e . FieldName == * rhs . FieldName } else if rhs . FieldName != nil { return false } if e . Key != nil { if rhs . Key == nil { return false } return e . Key . Equals ( * rhs . Key ) } else if rhs . Key != nil { return false } if e . Value != nil { if rhs . Value == nil { return false } return value . Equals ( * e . Value , * rhs . Value ) } else if rhs . Value != nil { return false } if e . Index != nil { if rhs . Index == nil { return false } return * e . Index == * rhs . Index } else if rhs . Index != nil { return false } return true }
Equals returns true if both path elements are equal.
Equals returns true if both path elements are equal .