pub struct ArgPlug {
pub x: usize,
pub y: usize,
pub expand: bool,
pub ori: Orientation,
}Expand description
An argument plug in a CompilingBlock, indicating where an argument can be connected.
Used for tracking the connection points for arguments in a visual block, including the position and orientation.
Fields§
§x: usizeX position of the plug.
y: usizeY position of the plug.
expand: boolWhether the argument plug is expand or not. (Typically “@”).
ori: OrientationOrientation of the plug (direction from which argument connects).
Trait Implementations§
impl Eq for ArgPlug
impl StructuralPartialEq for ArgPlug
Auto Trait Implementations§
impl Freeze for ArgPlug
impl RefUnwindSafe for ArgPlug
impl Send for ArgPlug
impl Sync for ArgPlug
impl Unpin for ArgPlug
impl UnwindSafe for ArgPlug
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