pub struct Tier { /* private fields */ }Expand description
A horizontal band of nodes in the diagram, optionally wrapped in a container.
Each tier has a unique ID, an optional label, a layout hint, and either a list of nodes or a container (or both).
Implementations§
Source§impl Tier
impl Tier
Sourcepub fn with_container(id: NodeId, container: Container) -> Self
pub fn with_container(id: NodeId, container: Container) -> Self
Creates a new tier with a container.
Sourcepub fn layout(&self) -> &TierLayout
pub fn layout(&self) -> &TierLayout
Returns the layout configuration.
Sourcepub fn set_layout(&mut self, layout: TierLayout)
pub fn set_layout(&mut self, layout: TierLayout)
Sets the layout configuration.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tier
impl<'de> Deserialize<'de> for Tier
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Tier
Auto Trait Implementations§
impl Freeze for Tier
impl RefUnwindSafe for Tier
impl Send for Tier
impl Sync for Tier
impl Unpin for Tier
impl UnsafeUnpin for Tier
impl UnwindSafe for Tier
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