Enum bonsaidb::core::schema::view::map::Mappings[][src]

pub enum Mappings<K = (), V = ()> where
    K: for<'a> Key<'a>, 
{ Simple(Option<Map<K, V>>), List(Vec<Map<K, V>, Global>), }
Expand description

A collection of Maps.

Variants

Simple(Option<Map<K, V>>)

Tuple Fields

0: Option<Map<K, V>>

Zero or one mappings.

List(Vec<Map<K, V>, Global>)

Tuple Fields

0: Vec<Map<K, V>, Global>

More than one mapping.

Implementations

Returns an empty collection of mappings.

Appends mapping to the end of this collection.

Appends mappings to the end of this collection and returns self.

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Extends a collection with the contents of an iterator. Read more

🔬 This is a nightly-only experimental API. (extend_one)

Extends a collection with exactly one element.

🔬 This is a nightly-only experimental API. (extend_one)

Reserves capacity in a collection for the given number of additional elements. Read more

Creates a value from an iterator. Read more

Creates a value from an iterator. Read more

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more