pub struct Component {
pub id: ComponentId,
/* private fields */
}
Expand description
The unit of composition for the gear object model. A component consists of one or more objects. Each object implements one or more traits. Component clients are only allowed to interact with objects via their traits. Note that publicly released traits should be treated as immutable to foster backward compatibility.
Fields§
§id: ComponentId
Implementations§
Trait Implementations§
Source§impl Ord for Component
impl Ord for Component
Source§impl PartialOrd for Component
impl PartialOrd for Component
impl Eq for Component
Auto Trait Implementations§
impl Freeze for Component
impl !RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl !UnwindSafe for Component
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