Searched refs:try_from_enum_ (Results 1 – 3 of 3) sorted by relevance
71 if (e_.try_from_enum_ != nullptr) { in GenRustDef()73 for (const auto& pair : e_.try_from_enum_->constants_) { in GenRustDef()76 stream << "impl TryFrom<" << e_.try_from_enum_->name_ << "> for " << e_.name_ << " {"; in GenRustDef()78 …stream << "fn try_from(value: " << e_.try_from_enum_->name_ << ") -> std::result::Result<Self, Sel… in GenRustDef()85 …stream << e_.try_from_enum_->name_ << "::" << constant_name << " => Ok(" << e_.name_ << "::" << co… in GenRustDef()
43 EnumDef* try_from_enum_ = nullptr; variable
139 opcode_index->try_from_enum_ = opcode; in generate_rust_source_one_file()