Lines Matching refs:constraint
296 for (const auto& constraint : parent_constraints_) { in GenValidator() local
297 s << "if (Get" << util::UnderscoreToCamelCase(constraint.first) << "() != "; in GenValidator()
298 const auto& field = parent_->GetParamList().GetField(constraint.first); in GenValidator()
300 s << std::get<int64_t>(constraint.second); in GenValidator()
302 s << std::get<std::string>(constraint.second); in GenValidator()
707 const auto& constraint = parent_constraints_.find(field->GetName()); in GenBuilderConstructor() local
708 if (constraint != parent_constraints_.end()) { in GenBuilderConstructor()
710 s << std::get<int64_t>(constraint->second); in GenBuilderConstructor()
712 s << std::get<std::string>(constraint->second); in GenBuilderConstructor()
909 auto constraint = FindConstraintField(); in GenRustStructImpls() local
910 auto constraint_field = GetParamList().GetField(constraint); in GenRustStructImpls()
912 … s << "fn parse(bytes: &[u8], " << constraint << ": " << constraint_type << ") -> Result<Self> {"; in GenRustStructImpls()
1204 auto constraint = all_constraints.find(field->GetName()); in GenRustBuilderStructImpls() local
1206 if (constraint != all_constraints.end()) { in GenRustBuilderStructImpls()
1208 s << std::get<int64_t>(constraint->second); in GenRustBuilderStructImpls()
1210 auto value = std::get<std::string>(constraint->second); in GenRustBuilderStructImpls()