Trait InitializationList

Source
pub trait InitializationList {
    // Required methods
    fn has_property(&self, t: TypeId) -> bool;
    fn set_properties(&self, context: &mut Context, person_id: PersonId);
}
Expand description

A trait that contains the initialization values for a new person. Do not use this directly, but instead use the tuple syntax.

Required Methods§

Source

fn has_property(&self, t: TypeId) -> bool

Source

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Implementations on Foreign Types§

Source§

impl InitializationList for ()

Source§

fn has_property(&self, _: TypeId) -> bool

Source§

fn set_properties(&self, _context: &mut Context, _person_id: PersonId)

Source§

impl<T0: PersonProperty> InitializationList for ((T0, T0::Value),)

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty, T14: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value), (T14, T14::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty, T14: PersonProperty, T15: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value), (T14, T14::Value), (T15, T15::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty, T14: PersonProperty, T15: PersonProperty, T16: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value), (T14, T14::Value), (T15, T15::Value), (T16, T16::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty, T14: PersonProperty, T15: PersonProperty, T16: PersonProperty, T17: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value), (T14, T14::Value), (T15, T15::Value), (T16, T16::Value), (T17, T17::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T0: PersonProperty, T1: PersonProperty, T2: PersonProperty, T3: PersonProperty, T4: PersonProperty, T5: PersonProperty, T6: PersonProperty, T7: PersonProperty, T8: PersonProperty, T9: PersonProperty, T10: PersonProperty, T11: PersonProperty, T12: PersonProperty, T13: PersonProperty, T14: PersonProperty, T15: PersonProperty, T16: PersonProperty, T17: PersonProperty, T18: PersonProperty> InitializationList for ((T0, T0::Value), (T1, T1::Value), (T2, T2::Value), (T3, T3::Value), (T4, T4::Value), (T5, T5::Value), (T6, T6::Value), (T7, T7::Value), (T8, T8::Value), (T9, T9::Value), (T10, T10::Value), (T11, T11::Value), (T12, T12::Value), (T13, T13::Value), (T14, T14::Value), (T15, T15::Value), (T16, T16::Value), (T17, T17::Value), (T18, T18::Value))

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Source§

impl<T1: PersonProperty> InitializationList for (T1, T1::Value)

Source§

fn has_property(&self, t: TypeId) -> bool

Source§

fn set_properties(&self, context: &mut Context, person_id: PersonId)

Implementors§