pub enum PetValue<N: Debug + Clone + PartialOrd> {
Node(N),
Str(String),
Num(f64),
Bool(bool),
}Expand description
A value type for the petgraph adapter that can hold node references or literals.
Variants§
Node(N)
Reference to another node.
Str(String)
String literal.
Num(f64)
Numeric value.
Bool(bool)
Boolean value.
Trait Implementations§
Source§impl<N: PartialOrd + Debug + Clone + PartialOrd> PartialOrd for PetValue<N>
impl<N: PartialOrd + Debug + Clone + PartialOrd> PartialOrd for PetValue<N>
impl<N: Debug + Clone + PartialOrd> StructuralPartialEq for PetValue<N>
Auto Trait Implementations§
impl<N> Freeze for PetValue<N>where
N: Freeze,
impl<N> RefUnwindSafe for PetValue<N>where
N: RefUnwindSafe,
impl<N> Send for PetValue<N>where
N: Send,
impl<N> Sync for PetValue<N>where
N: Sync,
impl<N> Unpin for PetValue<N>where
N: Unpin,
impl<N> UnsafeUnpin for PetValue<N>where
N: UnsafeUnpin,
impl<N> UnwindSafe for PetValue<N>where
N: 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