pub struct Role {
pub name: String,
pub targets: Vec<Address>,
pub ordered: bool,
}Expand description
One relationship role and the nodes it points at.
Fields§
§name: String§targets: Vec<Address>§ordered: boolWhether targets’ order is content. Most IFC roles are sets — e.g.
IfcRelAggregates.RelatedObjects — where reference order is an
authoring artifact and must not reach the address (review on #8265:
§2.5 preserves order for a role whose attribute is declared LIST,
e.g. IfcRelNests.RelatedObjects for alignment segments, where
[seg1, seg2] and [seg2, seg1] are different content). false
sorts targets before encoding, exactly as every role did before this
field existed; true encodes them as given.
Trait Implementations§
impl Eq for Role
impl StructuralPartialEq for Role
Auto Trait Implementations§
impl Freeze for Role
impl RefUnwindSafe for Role
impl Send for Role
impl Sync for Role
impl Unpin for Role
impl UnwindSafe for Role
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