[][src]Struct graphannis::graph::Component

pub struct Component<CT> where
    CT: ComponentType
{ pub name: String, pub layer: String, // some fields omitted }

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]

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]

impl<CT> Debug for Component<CT> where
    CT: ComponentType + Debug
[src]

impl<'de, CT> Deserialize<'de> for Component<CT> where
    CT: ComponentType
[src]

impl<CT> Display for Component<CT> where
    CT: ComponentType
[src]

impl<CT> Eq for Component<CT> where
    CT: ComponentType + Eq
[src]

impl<CT> FromStr for Component<CT> where
    CT: ComponentType
[src]

type Err = Error

The associated error which can be returned from parsing.

impl<CT> Hash for Component<CT> where
    CT: ComponentType + Hash
[src]

impl<CT> MallocSizeOf for Component<CT> where
    CT: ComponentType + MallocSizeOf
[src]

impl<CT> Ord for Component<CT> where
    CT: ComponentType + Ord
[src]

impl<CT> PartialEq<Component<CT>> for Component<CT> where
    CT: ComponentType + PartialEq<CT>, 
[src]

impl<CT> PartialOrd<Component<CT>> for Component<CT> where
    CT: ComponentType + PartialOrd<CT>, 
[src]

impl<CT> Serialize for Component<CT> where
    CT: ComponentType
[src]

impl<CT> StructuralEq for Component<CT> where
    CT: ComponentType
[src]

impl<CT> StructuralPartialEq for Component<CT> where
    CT: ComponentType
[src]

Auto Trait Implementations

impl<CT> RefUnwindSafe for Component<CT> where
    CT: RefUnwindSafe

impl<CT> Send for Component<CT>

impl<CT> Sync for Component<CT>

impl<CT> Unpin for Component<CT> where
    CT: Unpin

impl<CT> UnwindSafe for Component<CT> where
    CT: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,