Enum cameleon_genapi::elem_type::ImmOrPNode
source · pub enum ImmOrPNode<T> {
Imm(T),
PNode(NodeId),
}
Variants§
Implementations§
Trait Implementations§
source§impl<T: Clone> Clone for ImmOrPNode<T>
impl<T: Clone> Clone for ImmOrPNode<T>
source§fn clone(&self) -> ImmOrPNode<T>
fn clone(&self) -> ImmOrPNode<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: Debug> Debug for ImmOrPNode<T>
impl<T: Debug> Debug for ImmOrPNode<T>
source§impl<T: PartialEq> PartialEq<ImmOrPNode<T>> for ImmOrPNode<T>
impl<T: PartialEq> PartialEq<ImmOrPNode<T>> for ImmOrPNode<T>
source§fn eq(&self, other: &ImmOrPNode<T>) -> bool
fn eq(&self, other: &ImmOrPNode<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<T: Copy> Copy for ImmOrPNode<T>
impl<T: Eq> Eq for ImmOrPNode<T>
impl<T> StructuralEq for ImmOrPNode<T>
impl<T> StructuralPartialEq for ImmOrPNode<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for ImmOrPNode<T>where T: RefUnwindSafe,
impl<T> Send for ImmOrPNode<T>where T: Send,
impl<T> Sync for ImmOrPNode<T>where T: Sync,
impl<T> Unpin for ImmOrPNode<T>where T: Unpin,
impl<T> UnwindSafe for ImmOrPNode<T>where T: UnwindSafe,
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