Type Alias rustc_target::spec::StaticCow

source ·
type StaticCow<T> = Cow<'static, T>;

Aliased Type§

enum StaticCow<T> {
    Borrowed(&'static T),
    Owned(<T as ToOwned>::Owned),
}

Variants§

§1.0.0

Borrowed(&'static T)

Borrowed data.

§1.0.0

Owned(<T 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.
source§

impl<'a, A: ToJson> ToJson for Cow<'a, [A]>where [A]: ToOwned,

source§

fn to_json(&self) -> Json

source§

impl<'a> ToJson for Cow<'a, str>

source§

fn to_json(&self) -> Json

Layout§

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