Struct graphannis_core::types::Component
source · pub struct Component<CT: ComponentType> {
pub name: String,
pub layer: String,
/* private fields */
}
Expand description
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§
Trait Implementations§
source§impl<'de, CT: ComponentType> Deserialize<'de> for Component<CT>
impl<'de, CT: ComponentType> Deserialize<'de> for Component<CT>
source§fn 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
source§impl<CT: ComponentType> Display for Component<CT>
impl<CT: ComponentType> Display for Component<CT>
source§impl<CT: ComponentType> FromStr for Component<CT>
impl<CT: ComponentType> FromStr for Component<CT>
source§impl<CT: Ord + ComponentType> Ord for Component<CT>
impl<CT: Ord + ComponentType> Ord for Component<CT>
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<CT: PartialEq + ComponentType> PartialEq for Component<CT>
impl<CT: PartialEq + ComponentType> PartialEq for Component<CT>
source§impl<CT: PartialOrd + ComponentType> PartialOrd for Component<CT>
impl<CT: PartialOrd + ComponentType> PartialOrd for Component<CT>
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 moresource§impl<CT: ComponentType> Serialize for Component<CT>
impl<CT: ComponentType> Serialize for Component<CT>
impl<CT: Eq + ComponentType> Eq for Component<CT>
impl<CT: ComponentType> StructuralPartialEq for Component<CT>
Auto Trait Implementations§
impl<CT> Freeze for Component<CT>
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§
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