pub trait GraphProps:
'static
+ Copy
+ Send
+ Sync {
type Ix: RawIndex;
type Kind: GraphType;
// Required method
fn new() -> Self;
// Provided methods
fn phantom() -> PhantomData<(Self::Kind, Self::Ix)> { ... }
fn into_phantom(self) -> PhantomData<(Self::Kind, Self::Ix)> { ... }
fn is_directed(&self) -> bool { ... }
fn is_undirected(&self) -> bool { ... }
fn mode(&self) -> Mode { ... }
}
Expand description
The GraphProps
trait abstracts several generic types used to define a hyper graph
into a single entity.
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn phantom() -> PhantomData<(Self::Kind, Self::Ix)>
fn phantom() -> PhantomData<(Self::Kind, Self::Ix)>
returns a PhantomData
instance of the graph attributes.
Sourcefn into_phantom(self) -> PhantomData<(Self::Kind, Self::Ix)>
fn into_phantom(self) -> PhantomData<(Self::Kind, Self::Ix)>
convert the current attributes into a PhantomData
instance.
Sourcefn is_directed(&self) -> bool
fn is_directed(&self) -> bool
returns true if the attributes are directed.
Sourcefn is_undirected(&self) -> bool
fn is_undirected(&self) -> bool
returns true if the attributes are undirected.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.