Move ItemVTable and frieds to corelib::items

To avoid ambiguities regarding the use of FieldOffset, the BuiltinItem
proc-macro uses fully-qualified type names now.
This commit is contained in:
Simon Hausmann 2020-08-12 10:00:11 +02:00
parent aafb96cb93
commit 62a8b15f09
11 changed files with 104 additions and 107 deletions

View file

@ -171,5 +171,8 @@ pub trait BuiltinItem: Sized {
fn name() -> &'static str;
fn properties<Value: ValueType>() -> Vec<(&'static str, &'static dyn PropertyInfo<Self, Value>)>;
fn fields<Value: ValueType>() -> Vec<(&'static str, &'static dyn FieldInfo<Self, Value>)>;
fn signals() -> Vec<(&'static str, FieldOffset<Self, crate::Signal<()>>)>;
fn signals() -> Vec<(
&'static str,
const_field_offset::FieldOffset<Self, crate::Signal<()>, const_field_offset::PinnedFlag>,
)>;
}