Struct gear_objects::Component
source · 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 PartialEq for Component
impl PartialEq for Component
source§impl PartialOrd for Component
impl PartialOrd for Component
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for Component
Auto Trait Implementations§
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