What are the conditions under which box_autoadd
occurs?
#873
Answered
by
huang12zheng
huang12zheng
asked this question in
Q&A
-
It is something about pub fn inject_enum_SerializeEnum(t: SerializeEnum) {} generate
So, What are the conditions under which autoadd occurs?
pub enum SerializeEnum {
Record(Record),
SerEnum(SerEnum),
}
impl Serialize for SerializeEnum {
fn serialize<S>(&self, __serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
match *self {
SerializeEnum::Record(ref __field0) => __field0.serialize(__serializer),
SerializeEnum::SerEnum(ref __field0) => __field0.serialize(__serializer),
}
}
} |
Beta Was this translation helpful? Give feedback.
Answered by
huang12zheng
Dec 4, 2022
Replies: 2 comments 2 replies
-
Feel free to look at source code and search in it! |
Beta Was this translation helpful? Give feedback.
0 replies
-
I looked it up here before...But it doesn't look like it.
For now, I find a new place
Is this the right place? |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
huang12zheng
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I looked it up here before...But it doesn't look like it.