Trait graphannis_core::types::ComponentType [−][src]
pub trait ComponentType: Into<u16> + From<u16> + FromStr + ToString + Send + Sync + Clone + Debug + Ord {
type UpdateGraphIndex;
fn init_update_graph_index(
_graph: &Graph<Self>
) -> StdResult<Self::UpdateGraphIndex, ComponentTypeError>;
fn all_component_types() -> Vec<Self>ⓘ;
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>>ⓘ { ... }
}