///|
/// A copy with `label` replaced.
pub fn Node::with_label(self : Node, label : String) -> Node {
{ ..self, label, }
}
///|
/// A copy with `shape` replaced.
pub fn Node::with_shape(self : Node, shape : String) -> Node {
{ ..self, shape, }
}
///|
/// A copy with `label` replaced.
pub fn Group::with_label(self : Group, label : String) -> Group {
{ ..self, label, }
}
///|
/// A copy with `expanded` replaced.
pub fn Group::with_expanded(self : Group, expanded : Bool) -> Group {
{ ..self, expanded, }
}
///|
/// A copy with `label` replaced.
pub fn Lane::with_label(self : Lane, label : String) -> Lane {
{ ..self, label, }
}
///|
/// A copy with `expanded` replaced.
pub fn Lane::with_expanded(self : Lane, expanded : Bool) -> Lane {
{ ..self, expanded, }
}
///|
/// A copy with `label` replaced.
pub fn Connection::with_label(self : Connection, label : String) -> Connection {
{ ..self, label, }
}
///|
/// A copy with `nodes` replaced.
pub fn Swimlane::with_nodes(
self : Swimlane,
nodes : ArrayView[Node],
) -> Swimlane {
{ ..self, nodes: ReadOnlyArray::from_array(nodes), }
}
///|
/// A copy with `lanes` replaced.
pub fn Swimlane::with_lanes(
self : Swimlane,
lanes : ArrayView[Lane],
) -> Swimlane {
{ ..self, lanes: ReadOnlyArray::from_array(lanes), }
}
///|
/// A copy with `groups` replaced.
pub fn Swimlane::with_groups(
self : Swimlane,
groups : ArrayView[Group],
) -> Swimlane {
{ ..self, groups: ReadOnlyArray::from_array(groups), }
}
///|
/// A copy with `connections` replaced.
pub fn Swimlane::with_connections(
self : Swimlane,
connections : ArrayView[Connection],
) -> Swimlane {
{ ..self, connections: ReadOnlyArray::from_array(connections), }
}