Type Alias rustc_graphviz::Nodes

source ·
pub type Nodes<'a, N> = Cow<'a, [N]>;

Aliased Type§

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

Variants§

§1.0.0

Borrowed(&'a [N])

Borrowed data.

§1.0.0

Owned(<[N] 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.