pub struct Node {
pub id: NodeId,
pub kind: Option<KindId>,
pub label: String,
pub weight: f32,
pub pinned: bool,
}Expand description
图节点。weight 是力导向质量,pinned 表示布局中固定不动。
Fields§
§id: NodeId§kind: Option<KindId>类型;None 表示未分类。
label: String§weight: f32布局质量,恒 ≥ 0 且非 NaN(输入边界已净化)。
pinned: bool固定节点:布局迭代中位置不动,可被拖动 / 搜索定位。
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Node
impl<'de> Deserialize<'de> for Node
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 Node
Auto Trait Implementations§
impl Forget for Node
impl Freeze for Node
impl Move for Node
impl RefUnwindSafe for Node
impl Send for Nodewhere
RawVecInner: Send,
impl Sync for Nodewhere
RawVecInner: Sync,
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Nodewhere
RawVecInner: UnwindSafe,
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