Type Alias rustc_graphviz::Edges

source ·
pub type Edges<'a, E> = Cow<'a, [E]>;

Aliased Type§

enum Edges<'a, E> {
    Borrowed(&'a [E]),
    Owned(<[E] as ToOwned>::Owned),
}

Variants§

§1.0.0

Borrowed(&'a [E])

Borrowed data.

§1.0.0

Owned(<[E] as ToOwned>::Owned)

Owned data.

Trait Implementations§

1.0.0 · source§

impl<B> Deref for Cow<'_, B>where B: ToOwned + ?Sized, <B as ToOwned>::Owned: Borrow<B>,

§

type Target = B

The resulting type after dereferencing.
source§

fn deref(&self) -> &B

Dereferences the value.

Layout§

Note: Encountered an error during type layout; the type failed to be normalized.