@@ -11,9 +11,7 @@ use super::{ClassBuilder, Export};
1111use accessor:: { Getter , InvalidGetter , InvalidSetter , RawGetter , RawSetter , Setter } ;
1212
1313mod accessor;
14- mod hint;
15-
16- pub use hint:: * ;
14+ pub mod hint;
1715
1816/// Metadata about the exported property.
1917#[ derive( Debug ) ]
@@ -57,7 +55,7 @@ pub struct PropertyBuilder<'a, C, T: Export, S = InvalidSetter<'a>, G = InvalidG
5755 getter : G ,
5856 default : Option < T > ,
5957 hint : Option < T :: Hint > ,
60- usage : Usage ,
58+ usage : PropertyUsage ,
6159 class_builder : & ' a ClassBuilder < C > ,
6260}
6361
7573 getter : InvalidGetter :: new ( name) ,
7674 default : None ,
7775 hint : None ,
78- usage : Usage :: DEFAULT ,
76+ usage : PropertyUsage :: DEFAULT ,
7977 class_builder,
8078 }
8179 }
@@ -267,14 +265,14 @@ where
267265
268266 /// Sets a property usage.
269267 #[ inline]
270- pub fn with_usage ( mut self , usage : Usage ) -> Self {
268+ pub fn with_usage ( mut self , usage : PropertyUsage ) -> Self {
271269 self . usage = usage;
272270 self
273271 }
274272}
275273
276274bitflags:: bitflags! {
277- pub struct Usage : u32 {
275+ pub struct PropertyUsage : u32 {
278276 const STORAGE = sys:: godot_property_usage_flags_GODOT_PROPERTY_USAGE_STORAGE as u32 ;
279277 const EDITOR = sys:: godot_property_usage_flags_GODOT_PROPERTY_USAGE_EDITOR as u32 ;
280278 const NETWORK = sys:: godot_property_usage_flags_GODOT_PROPERTY_USAGE_NETWORK as u32 ;
@@ -299,7 +297,7 @@ bitflags::bitflags! {
299297 }
300298}
301299
302- impl Usage {
300+ impl PropertyUsage {
303301 #[ inline]
304302 pub fn to_sys ( self ) -> sys:: godot_property_usage_flags {
305303 self . bits ( ) as sys:: godot_property_usage_flags
@@ -458,7 +456,7 @@ mod impl_export {
458456 }
459457
460458 impl Export for VariantArray < Shared > {
461- type Hint = ArrayHint ;
459+ type Hint = hint :: ArrayHint ;
462460
463461 #[ inline]
464462 fn export_info ( hint : Option < Self :: Hint > ) -> ExportInfo {
0 commit comments