Skip to main content

luaur_analysis/methods/
type_clone.rs

1use crate::records::r#type::Type;
2
3impl Type {
4    pub fn clone(&self) -> Type {
5        Type {
6            ty: self.ty.clone(),
7            persistent: self.persistent,
8            documentation_symbol: self.documentation_symbol.clone(),
9            owning_arena: self.owning_arena,
10        }
11    }
12}