pub struct PortRef {
pub node: NodeRef,
pub port: String,
}Expand description
Port reference by name within a node.
use daedalus_planner::{NodeRef, PortRef};
let port = PortRef { node: NodeRef(0), port: "out".into() };
assert_eq!(port.port, "out");Fields§
§node: NodeRef§port: StringTrait Implementations§
Source§impl<'de> Deserialize<'de> for PortRef
impl<'de> Deserialize<'de> for PortRef
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
Source§impl Ord for PortRef
impl Ord for PortRef
Source§impl PartialOrd for PortRef
impl PartialOrd for PortRef
impl Eq for PortRef
impl StructuralPartialEq for PortRef
Auto Trait Implementations§
impl Freeze for PortRef
impl RefUnwindSafe for PortRef
impl Send for PortRef
impl Sync for PortRef
impl Unpin for PortRef
impl UnwindSafe for PortRef
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