pub struct Element {
pub id: ElementId,
pub labels: Vec<LabelId>,
/* private fields */
}Expand description
An owned element view: id, labels, and all properties in one read.
§Performance
Cloning is O(label count + property count).
Fields§
§id: ElementIdCanonical element id.
labels: Vec<LabelId>Labels assigned to this element, ascending.
Implementations§
Trait Implementations§
impl Eq for Element
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnsafeUnpin for Element
impl UnwindSafe for Element
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