pub struct FixedArityNode<G: DenseId, O: DenseId, const K: usize> {
pub global_id: G::Repr,
pub op: O::Repr,
pub flags: u8,
pub children: [G; K],
}Fields§
§global_id: G::Repr§op: O::Repr§flags: u8§children: [G; K]Implementations§
Source§impl<G: DenseId, O: DenseId, const K: usize> FixedArityNode<G, O, K>
impl<G: DenseId, O: DenseId, const K: usize> FixedArityNode<G, O, K>
pub fn new(global_id: G, op: O, children: [G; K]) -> Self
pub fn global_id(&self) -> G
pub fn op(&self) -> O
pub fn has_history(&self) -> bool
pub fn set_history(&mut self)
pub fn content_hash(&self) -> u64
pub fn content_eq(&self, other: &Self) -> bool
Trait Implementations§
Source§impl<G: Clone + DenseId, O: Clone + DenseId, const K: usize> Clone for FixedArityNode<G, O, K>
impl<G: Clone + DenseId, O: Clone + DenseId, const K: usize> Clone for FixedArityNode<G, O, K>
impl<G: Copy + DenseId, O: Copy + DenseId, const K: usize> Copy for FixedArityNode<G, O, K>
Source§impl<G: Debug + DenseId, O: Debug + DenseId, const K: usize> Debug for FixedArityNode<G, O, K>
impl<G: Debug + DenseId, O: Debug + DenseId, const K: usize> Debug for FixedArityNode<G, O, K>
Auto Trait Implementations§
impl<G, O, const K: usize> Freeze for FixedArityNode<G, O, K>
impl<G, O, const K: usize> RefUnwindSafe for FixedArityNode<G, O, K>where
<G as Tagged>::Repr: RefUnwindSafe,
<O as Tagged>::Repr: RefUnwindSafe,
[G; K]: RefUnwindSafe,
impl<G, O, const K: usize> Send for FixedArityNode<G, O, K>
impl<G, O, const K: usize> Sync for FixedArityNode<G, O, K>
impl<G, O, const K: usize> Unpin for FixedArityNode<G, O, K>
impl<G, O, const K: usize> UnsafeUnpin for FixedArityNode<G, O, K>
impl<G, O, const K: usize> UnwindSafe for FixedArityNode<G, O, K>
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