Skip to main content

MetadataStoreBuilder

Struct MetadataStoreBuilder 

Source
pub struct MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S: State = Empty>
where ObjKey: Key, N: Field, K: Field, L: Field, W: Field, WV: WeightValue, A: Field, AV: AnnotationValue,
{ /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build().

Implementations§

Source§

impl<ObjKey, N, K, L, W, WV, A, AV, S: State> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
where ObjKey: Key, N: Field, K: Field, L: Field, W: Field, WV: WeightValue, A: Field, AV: AnnotationValue,

Source

pub fn build(self) -> MetadataStore<ObjKey, N, K, L, W, WV, A, AV>
where S: IsComplete,

Finish building and return the requested object

Source

pub fn ids( self, value: DenseSlottedBTreeInterner<ObjKey, Uuid>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetIds<S>>
where S::Ids: IsUnset,

Required.

ID mapping for external object identification.

Source

pub fn names( self, value: NameStore<ObjKey, N>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetNames<S>>
where S::Names: IsUnset,

Required.

Name metadata store.

Source

pub fn kinds( self, value: KindStore<ObjKey, K>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetKinds<S>>
where S::Kinds: IsUnset,

Required.

Kind metadata store.

Source

pub fn labels( self, value: LabelStore<ObjKey, L>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetLabels<S>>
where S::Labels: IsUnset,

Required.

Label metadata store.

Source

pub fn weights( self, value: WeightStore<ObjKey, W, WV>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetWeights<S>>
where S::Weights: IsUnset,

Required.

Weight metadata store.

Source

pub fn annotations( self, value: AnnotationStore<ObjKey, A, AV>, ) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetAnnotations<S>>
where S::Annotations: IsUnset,

Required.

Annotation metadata store.

Auto Trait Implementations§

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> Freeze for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> RefUnwindSafe for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> Send for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
where ObjKey: Send, N: Send, K: Send, L: Send, W: Send, A: Send, WV: Send, AV: Send,

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> Sync for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
where ObjKey: Sync, N: Sync, K: Sync, L: Sync, W: Sync, A: Sync, WV: Sync, AV: Sync,

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> Unpin for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
where ObjKey: Unpin, N: Unpin, K: Unpin, L: Unpin, W: Unpin, A: Unpin,

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> UnsafeUnpin for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>

§

impl<ObjKey, N, K, L, W, WV, A, AV, S> UnwindSafe for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.