pub struct NeighborReq {
pub role: NeighborRole,
pub card: Cardinality,
}Expand description
A single neighbour requirement declared by an active device terminal.
Fields§
§role: NeighborRole§card: CardinalityImplementations§
Source§impl NeighborReq
impl NeighborReq
pub const fn required(role: NeighborRole) -> Self
pub const fn optional(role: NeighborRole) -> Self
pub const fn repeatable(role: NeighborRole) -> Self
Trait Implementations§
Source§impl Clone for NeighborReq
impl Clone for NeighborReq
Source§fn clone(&self) -> NeighborReq
fn clone(&self) -> NeighborReq
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for NeighborReq
Source§impl Debug for NeighborReq
impl Debug for NeighborReq
impl Eq for NeighborReq
Source§impl PartialEq for NeighborReq
impl PartialEq for NeighborReq
Source§fn eq(&self, other: &NeighborReq) -> bool
fn eq(&self, other: &NeighborReq) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NeighborReq
Auto Trait Implementations§
impl Freeze for NeighborReq
impl RefUnwindSafe for NeighborReq
impl Send for NeighborReq
impl Sync for NeighborReq
impl Unpin for NeighborReq
impl UnsafeUnpin for NeighborReq
impl UnwindSafe for NeighborReq
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.