Skip to content

Commit e65dab0

Browse files
committed
Add into_* methods for syntax nodes codegen
Example --- ```rust impl Adt { pub fn into_enum(self) -> Option<Enum> { if let Self::Enum(variant) = self { Some(variant) } else { None } } pub fn into_struct(self) -> Option<Struct> { if let Self::Struct(variant) = self { Some(variant) } else { None } } pub fn into_union(self) -> Option<Union> { if let Self::Union(variant) = self { Some(variant) } else { None } } } ```
1 parent 4bf516e commit e65dab0

File tree

2 files changed

+399
-0
lines changed

2 files changed

+399
-0
lines changed

0 commit comments

Comments
 (0)