Enum graphalgos::graphs::GNumber
source · pub enum GNumber {
U16(u16),
U32(u32),
U64(u64),
I16(i16),
I32(i32),
I64(i64),
F32(f32),
F64(f64),
}
Expand description
Edge Weight Type constraint enum
Weight can only be a numeric type
eg: GNumber::I32(10)
Variants§
Trait Implementations§
source§impl PartialEq<GNumber> for GNumber
impl PartialEq<GNumber> for GNumber
source§impl PartialOrd<GNumber> for GNumber
impl PartialOrd<GNumber> for GNumber
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GNumber
impl StructuralPartialEq for GNumber
Auto Trait Implementations§
impl RefUnwindSafe for GNumber
impl Send for GNumber
impl Sync for GNumber
impl Unpin for GNumber
impl UnwindSafe for GNumber
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