pub struct LitNode<G: DenseId, O: DenseId, V: DenseId> {
pub global_id: G::Repr,
pub op: O::Repr,
pub flags: u8,
pub lit: V,
}Fields§
§global_id: G::Repr§op: O::Repr§flags: u8§lit: VImplementations§
Source§impl<G: DenseId, O: DenseId, V: DenseId> LitNode<G, O, V>
impl<G: DenseId, O: DenseId, V: DenseId> LitNode<G, O, V>
pub fn new(global_id: G, op: O, lit: V) -> 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§
impl<G: Copy + DenseId, O: Copy + DenseId, V: Copy + DenseId> Copy for LitNode<G, O, V>
Auto Trait Implementations§
impl<G, O, V> Freeze for LitNode<G, O, V>
impl<G, O, V> RefUnwindSafe for LitNode<G, O, V>
impl<G, O, V> Send for LitNode<G, O, V>
impl<G, O, V> Sync for LitNode<G, O, V>
impl<G, O, V> Unpin for LitNode<G, O, V>
impl<G, O, V> UnsafeUnpin for LitNode<G, O, V>
impl<G, O, V> UnwindSafe for LitNode<G, O, V>
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