///|
/// 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 `text` replaced.
pub fn Note::with_text(self : Note, text : String) -> Note {
{ ..self, text, }
}
///|
/// A copy with `lanes` replaced.
pub fn Flowchart::with_lanes(
self : Flowchart,
lanes : ArrayView[Lane],
) -> Flowchart {
{ ..self, lanes: ReadOnlyArray::from_array(lanes), }
}
///|
/// A copy with `groups` replaced.
pub fn Flowchart::with_groups(
self : Flowchart,
groups : ArrayView[Group],
) -> Flowchart {
{ ..self, groups: ReadOnlyArray::from_array(groups), }
}
///|
/// A copy with `connections` replaced.
pub fn Flowchart::with_connections(
self : Flowchart,
connections : ArrayView[Connection],
) -> Flowchart {
{ ..self, connections: ReadOnlyArray::from_array(connections), }
}
///|
/// A copy with `notes` replaced.
pub fn Flowchart::with_notes(
self : Flowchart,
notes : ArrayView[Note],
) -> Flowchart {
{ ..self, notes: ReadOnlyArray::from_array(notes), }
}