impl_shared_attributes

Macro impl_shared_attributes 

Source
macro_rules! impl_shared_attributes {
    ($ty:ty) => { ... };
}
Expand description

Macro to implement HasSharedAttributes for a given type Assumes the type has the following fields:

  • name: String
  • is_locked: bool
  • editor_layer: Option
  • editor_layer_name: Option
  • editor_layer_visibility: Option
  • part_group_name: Option