Struct graphannis::graph::Component
source · pub struct Component<CT>where
CT: ComponentType,{
pub name: SmartString<LazyCompact>,
pub layer: SmartString<LazyCompact>,
/* private fields */
}
Expand description
Identifies an edge component of the graph.
Fields§
§name: SmartString<LazyCompact>
Name of the component
layer: SmartString<LazyCompact>
A layer name which allows to group different components into the same layer. Can be empty.
Implementations§
source§impl<CT> Component<CT>where
CT: ComponentType,
impl<CT> Component<CT>where
CT: ComponentType,
pub fn new( ctype: CT, layer: SmartString<LazyCompact>, name: SmartString<LazyCompact> ) -> Component<CT>
Trait Implementations§
source§impl<'de, CT> Deserialize<'de> for Component<CT>where
CT: ComponentType,
impl<'de, CT> Deserialize<'de> for Component<CT>where
CT: ComponentType,
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Component<CT>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<Component<CT>, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<CT> Display for Component<CT>where
CT: ComponentType,
impl<CT> Display for Component<CT>where
CT: ComponentType,
source§impl<CT> FromStr for Component<CT>where
CT: ComponentType,
impl<CT> FromStr for Component<CT>where
CT: ComponentType,
source§impl<CT> Ord for Component<CT>where
CT: Ord + ComponentType,
impl<CT> Ord for Component<CT>where
CT: Ord + ComponentType,
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 for Component<CT>where
CT: PartialEq + ComponentType,
impl<CT> PartialEq for Component<CT>where
CT: PartialEq + ComponentType,
source§impl<CT> PartialOrd for Component<CT>where
CT: PartialOrd + ComponentType,
impl<CT> PartialOrd for Component<CT>where
CT: PartialOrd + ComponentType,
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> Serialize for Component<CT>where
CT: ComponentType,
impl<CT> Serialize for Component<CT>where
CT: ComponentType,
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<CT> Eq for Component<CT>where
CT: Eq + ComponentType,
impl<CT> StructuralPartialEq for Component<CT>where
CT: ComponentType,
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<T> CallHasher for T
impl<T> CallHasher for T
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