Type Alias comfy_wgpu::AnyMap

pub type AnyMap = Map<dyn Any>;
Expand description

The most common type of Map: just using Any.

Why is this a separate type alias rather than a default value for Map<A>? Map::new() doesn’t seem to be happy to infer that it should go with the default value. It’s a bit sad, really. Ah well, I guess this approach will do.

Aliased Type§

struct AnyMap { /* private fields */ }

Trait Implementations§

§

impl<A> AsMut<RawMap<A>> for Map<A>where A: UncheckedAnyExt + ?Sized,

§

fn as_mut(&mut self) -> &mut RawMap<A>

Converts this type into a mutable reference of the (usually inferred) input type.
§

impl<A> AsRef<RawMap<A>> for Map<A>where A: UncheckedAnyExt + ?Sized,

§

fn as_ref(&self) -> &RawMap<A>

Converts this type into a shared reference of the (usually inferred) input type.
§

impl<A> Clone for Map<A>where A: UncheckedAnyExt + ?Sized, Box<A, Global>: Clone,

§

fn clone(&self) -> Map<A>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl<A> Debug for Map<A>where A: Debug + UncheckedAnyExt + ?Sized,

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
§

impl<A> Into<RawMap<A>> for Map<A>where A: UncheckedAnyExt + ?Sized,

§

fn into(self) -> RawMap<A>

Converts this type into the (usually inferred) input type.