pub struct BlockSnapshot {
pub id: usize,
pub name: String,
pub category: BlockCategory,
pub input_count: usize,
pub output_count: usize,
}Expand description
Snapshot of a block’s metadata for visualization.
Contains owned data suitable for cross-thread transfer.
Fields§
§id: usizeThe block’s unique identifier.
name: StringDisplay name of the block type.
category: BlockCategoryCategory of the block.
input_count: usizeNumber of input ports.
output_count: usizeNumber of output ports.
Trait Implementations§
Source§impl Clone for BlockSnapshot
impl Clone for BlockSnapshot
Source§fn clone(&self) -> BlockSnapshot
fn clone(&self) -> BlockSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BlockSnapshot
impl RefUnwindSafe for BlockSnapshot
impl Send for BlockSnapshot
impl Sync for BlockSnapshot
impl Unpin for BlockSnapshot
impl UnwindSafe for BlockSnapshot
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