Enum net_ensembles::dual_graph::WhichGraph
source · [−]pub enum WhichGraph<T> {
Graph1(T),
Graph2(T),
}
Expand description
Stores information T and the graph the information corresponds to
Variants
Graph1(T)
information is related to graph 1
Graph2(T)
information is related to graph 2
Implementations
sourceimpl<T> WhichGraph<T>
impl<T> WhichGraph<T>
pub fn into_inner(self) -> T
Trait Implementations
sourceimpl<T: Clone> Clone for WhichGraph<T>
impl<T: Clone> Clone for WhichGraph<T>
sourcefn clone(&self) -> WhichGraph<T>
fn clone(&self) -> WhichGraph<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl<T: Debug> Debug for WhichGraph<T>
impl<T: Debug> Debug for WhichGraph<T>
sourceimpl<T> Deref for WhichGraph<T>
impl<T> Deref for WhichGraph<T>
sourceimpl<T> DerefMut for WhichGraph<T>
impl<T> DerefMut for WhichGraph<T>
sourceimpl<'de, T> Deserialize<'de> for WhichGraph<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for WhichGraph<T>where
T: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<T: PartialEq> PartialEq<WhichGraph<T>> for WhichGraph<T>
impl<T: PartialEq> PartialEq<WhichGraph<T>> for WhichGraph<T>
sourcefn eq(&self, other: &WhichGraph<T>) -> bool
fn eq(&self, other: &WhichGraph<T>) -> bool
sourceimpl<T> Serialize for WhichGraph<T>where
T: Serialize,
impl<T> Serialize for WhichGraph<T>where
T: Serialize,
impl<T: Copy> Copy for WhichGraph<T>
impl<T: Eq> Eq for WhichGraph<T>
impl<T> StructuralEq for WhichGraph<T>
impl<T> StructuralPartialEq for WhichGraph<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for WhichGraph<T>where
T: RefUnwindSafe,
impl<T> Send for WhichGraph<T>where
T: Send,
impl<T> Sync for WhichGraph<T>where
T: Sync,
impl<T> Unpin for WhichGraph<T>where
T: Unpin,
impl<T> UnwindSafe for WhichGraph<T>where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
impl<S, T> CastFloat<T> for Swhere
T: ConvFloat<S>,
fn cast_trunc(self) -> T
fn cast_trunc(self) -> T
Cast to integer, truncating Read more
fn cast_nearest(self) -> T
fn cast_nearest(self) -> T
Cast to the nearest integer Read more
fn cast_floor(self) -> T
fn cast_floor(self) -> T
Cast the floor to an integer Read more
fn try_cast_trunc(self) -> Result<T, Error>
fn try_cast_trunc(self) -> Result<T, Error>
Try converting to integer with truncation Read more
fn try_cast_nearest(self) -> Result<T, Error>
fn try_cast_nearest(self) -> Result<T, Error>
Try converting to the nearest integer Read more
fn try_cast_floor(self) -> Result<T, Error>
fn try_cast_floor(self) -> Result<T, Error>
Try converting the floor to an integer Read more
fn try_cast_ceil(self) -> Result<T, Error>
fn try_cast_ceil(self) -> Result<T, Error>
Try convert the ceiling to an integer Read more