Skip to main content

luaur_analysis/methods/
property_writeonly.rs

1use crate::records::property_type::Property;
2use crate::type_aliases::type_id::TypeId;
3
4impl Property {
5    pub fn writeonly(ty: TypeId) -> Self {
6        Property {
7            read_ty: None,
8            write_ty: Some(ty),
9            ..Default::default()
10        }
11    }
12}