[−][src]Struct graphannis::graph::Component
Identifies an edge component of the graph.
Fields
name: String
Name of the component
layer: String
A layer name which allows to group different components into the same layer. Can be empty.
Implementations
impl<CT> Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
pub fn new(ctype: CT, layer: String, name: String) -> Component<CT>
[src]
pub fn get_type(&self) -> CT
[src]
Get type of the component
pub fn set_type(&mut self, ctype: CT)
[src]
Set type of the component
Trait Implementations
impl<CT> Clone for Component<CT> where
CT: ComponentType + Clone,
[src]
CT: ComponentType + Clone,
impl<CT> Debug for Component<CT> where
CT: ComponentType + Debug,
[src]
CT: ComponentType + Debug,
impl<'de, CT> Deserialize<'de> for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Component<CT>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<Component<CT>, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl<CT> Display for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
impl<CT> Eq for Component<CT> where
CT: ComponentType + Eq,
[src]
CT: ComponentType + Eq,
impl<CT> FromStr for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
type Err = Error
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Component<CT>, <Component<CT> as FromStr>::Err>
[src]
impl<CT> Hash for Component<CT> where
CT: ComponentType + Hash,
[src]
CT: ComponentType + Hash,
fn hash<__H>(&self, state: &mut __H) where
__H: Hasher,
[src]
__H: Hasher,
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<CT> MallocSizeOf for Component<CT> where
CT: ComponentType + MallocSizeOf,
[src]
CT: ComponentType + MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
impl<CT> Ord for Component<CT> where
CT: ComponentType + Ord,
[src]
CT: ComponentType + Ord,
fn cmp(&self, other: &Component<CT>) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl<CT> PartialEq<Component<CT>> for Component<CT> where
CT: ComponentType + PartialEq<CT>,
[src]
CT: ComponentType + PartialEq<CT>,
impl<CT> PartialOrd<Component<CT>> for Component<CT> where
CT: ComponentType + PartialOrd<CT>,
[src]
CT: ComponentType + PartialOrd<CT>,
fn partial_cmp(&self, other: &Component<CT>) -> Option<Ordering>
[src]
fn lt(&self, other: &Component<CT>) -> bool
[src]
fn le(&self, other: &Component<CT>) -> bool
[src]
fn gt(&self, other: &Component<CT>) -> bool
[src]
fn ge(&self, other: &Component<CT>) -> bool
[src]
impl<CT> Serialize for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl<CT> StructuralEq for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
impl<CT> StructuralPartialEq for Component<CT> where
CT: ComponentType,
[src]
CT: ComponentType,
Auto Trait Implementations
impl<CT> RefUnwindSafe for Component<CT> where
CT: RefUnwindSafe,
CT: RefUnwindSafe,
impl<CT> Send for Component<CT>
impl<CT> Sync for Component<CT>
impl<CT> Unpin for Component<CT> where
CT: Unpin,
CT: Unpin,
impl<CT> UnwindSafe for Component<CT> where
CT: UnwindSafe,
CT: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,