pub struct Node { /* private fields */ }Implementations§
Source§impl Node
impl Node
pub fn new( node_type: NodeType, incoming: Option<(Slot, Slot)>, edges: [Edge; 4], ) -> Self
pub fn from_pd_code(edges: [Edge; 4]) -> Self
pub fn orientable(node_type: NodeType, p: Slot, q: Slot) -> bool
pub fn node_type(&self) -> NodeType
pub fn edge(&self, s: Slot) -> Edge
pub fn edges(&self) -> &[Edge; 4]
pub fn min_edge(&self) -> Edge
pub fn is_crossing(&self) -> bool
pub fn is_resolved(&self) -> bool
pub fn resolve(&self, r: Bit) -> Self
pub fn is_oriented(&self) -> bool
pub fn incoming(&self) -> Option<(Slot, Slot)>
pub fn is_incoming(&self, s: Slot) -> bool
pub fn is_pos(&self) -> bool
pub fn is_neg(&self) -> bool
pub fn sign(&self) -> Option<Sign>
pub fn mirror(&self) -> Self
pub fn reversed(&self) -> Self
pub fn is_adj_to(&self, x: &Node) -> bool
pub fn arcs(&self) -> (Path, Path)
pub fn convert_edges<F>(&self, f: F) -> Self
pub fn paired_slot(&self, s: Slot) -> Slot
Trait Implementations§
impl Eq for Node
impl StructuralPartialEq for Node
Auto Trait Implementations§
impl Freeze for Node
impl RefUnwindSafe for Node
impl Send for Node
impl Sync for Node
impl Unpin for Node
impl UnsafeUnpin for Node
impl UnwindSafe for Node
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> 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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more