pub struct PortName(/* private fields */);Expand description
Shared name for plugs and sockets. The two kinds live in the
same per-element namespace (SRD-0005 D13): an element may not
have a plug and a socket with the same PortName.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PortName
impl<'de> Deserialize<'de> for PortName
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Name for PortName
impl Name for PortName
Source§const KIND: &'static str = "PortName"
const KIND: &'static str = "PortName"
Human-readable kind label, used in error messages and
Debug.Source§const MAX_LEN: usize = 64
const MAX_LEN: usize = 64
Maximum byte length (UTF-8). Default 64 — override when a larger
ceiling is natural (plan names, for example).
Source§impl Ord for PortName
impl Ord for PortName
Source§impl PartialOrd for PortName
impl PartialOrd for PortName
impl Eq for PortName
impl StructuralPartialEq for PortName
Auto Trait Implementations§
impl Freeze for PortName
impl RefUnwindSafe for PortName
impl Send for PortName
impl Sync for PortName
impl Unpin for PortName
impl UnsafeUnpin for PortName
impl UnwindSafe for PortName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.