pub struct Attr {
pub cmd: Arc<dyn AttrCommand + Sync + Send>,
pub is_public: bool,
pub is_optional: bool,
pub is_array: bool,
}Expand description
Attr holds the generation command used to generate an attribute in an entity.
AttrCommand provides the command pattern interface to apply and
revert the attribute logic, supporting rolling, re-rolling,
and unrolling entities.
Attr is cloneable so it can be shared throughout the class hierarchy.
(See the method expand in ClassBuilder).
The cmd inside Attr is using std::rc::Rc for that purpose.
Fields§
§cmd: Arc<dyn AttrCommand + Sync + Send>§is_public: bool§is_optional: bool§is_array: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for Attr
impl !RefUnwindSafe for Attr
impl Send for Attr
impl Sync for Attr
impl Unpin for Attr
impl !UnwindSafe for Attr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more