pub enum DefaultComponentType {
Edge,
}
Expand description
A simplified implementation of a ComponentType
that only has one type of edges.
Variants§
Edge
Trait Implementations§
source§impl Clone for DefaultComponentType
impl Clone for DefaultComponentType
source§fn clone(&self) -> DefaultComponentType
fn clone(&self) -> DefaultComponentType
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 ComponentType for DefaultComponentType
impl ComponentType for DefaultComponentType
type UpdateGraphIndex = DefaultGraphIndex
§type GlobalStatistics = DefaultGlobalStatistics
type GlobalStatistics = DefaultGlobalStatistics
Statistics that combine information for multiple graph components/and or annotations.
fn init_update_graph_index( _graph: &Graph<Self> ) -> StdResult<Self::UpdateGraphIndex, ComponentTypeError>
fn all_component_types() -> Vec<Self>
fn calculate_global_statistics( _graph: &mut Graph<Self> ) -> StdResult<(), ComponentTypeError>
fn before_update_event( _update: &UpdateEvent, _graph: &Graph<Self>, _index: &mut Self::UpdateGraphIndex ) -> StdResult<(), ComponentTypeError>
fn after_update_event( _update: UpdateEvent, _graph: &Graph<Self>, _index: &mut Self::UpdateGraphIndex ) -> StdResult<(), ComponentTypeError>
fn apply_update_graph_index( _index: Self::UpdateGraphIndex, _graph: &mut Graph<Self> ) -> StdResult<(), ComponentTypeError>
fn default_components() -> Vec<Component<Self>>
fn update_graph_index_components(_graph: &Graph<Self>) -> Vec<Component<Self>>
source§impl Debug for DefaultComponentType
impl Debug for DefaultComponentType
source§impl Display for DefaultComponentType
impl Display for DefaultComponentType
source§impl From<DefaultComponentType> for u16
impl From<DefaultComponentType> for u16
source§fn from(_: DefaultComponentType) -> Self
fn from(_: DefaultComponentType) -> Self
Converts to this type from the input type.
source§impl From<u16> for DefaultComponentType
impl From<u16> for DefaultComponentType
source§impl FromStr for DefaultComponentType
impl FromStr for DefaultComponentType
source§impl IntoEnumIterator for DefaultComponentType
impl IntoEnumIterator for DefaultComponentType
type Iterator = DefaultComponentTypeIter
fn iter() -> DefaultComponentTypeIter ⓘ
source§impl Ord for DefaultComponentType
impl Ord for DefaultComponentType
source§fn cmp(&self, other: &DefaultComponentType) -> Ordering
fn cmp(&self, other: &DefaultComponentType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for DefaultComponentType
impl PartialEq for DefaultComponentType
source§fn eq(&self, other: &DefaultComponentType) -> bool
fn eq(&self, other: &DefaultComponentType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for DefaultComponentType
impl PartialOrd for DefaultComponentType
source§fn partial_cmp(&self, other: &DefaultComponentType) -> Option<Ordering>
fn partial_cmp(&self, other: &DefaultComponentType) -> Option<Ordering>
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 Eq for DefaultComponentType
impl StructuralPartialEq for DefaultComponentType
Auto Trait Implementations§
impl Freeze for DefaultComponentType
impl RefUnwindSafe for DefaultComponentType
impl Send for DefaultComponentType
impl Sync for DefaultComponentType
impl Unpin for DefaultComponentType
impl UnwindSafe for DefaultComponentType
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
source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more