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,
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,
Sourcepub fn build(self) -> MetadataStore<ObjKey, N, K, L, W, WV, A, AV>where
S: IsComplete,
pub fn build(self) -> MetadataStore<ObjKey, N, K, L, W, WV, A, AV>where
S: IsComplete,
Finish building and return the requested object
Sourcepub fn ids(
self,
value: DenseSlottedBTreeInterner<ObjKey, Uuid>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetIds<S>>where
S::Ids: IsUnset,
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.
Sourcepub fn names(
self,
value: NameStore<ObjKey, N>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetNames<S>>where
S::Names: IsUnset,
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.
Sourcepub fn kinds(
self,
value: KindStore<ObjKey, K>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetKinds<S>>where
S::Kinds: IsUnset,
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.
Sourcepub fn labels(
self,
value: LabelStore<ObjKey, L>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetLabels<S>>where
S::Labels: IsUnset,
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.
Sourcepub fn weights(
self,
value: WeightStore<ObjKey, W, WV>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetWeights<S>>where
S::Weights: IsUnset,
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.
Sourcepub fn annotations(
self,
value: AnnotationStore<ObjKey, A, AV>,
) -> MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, SetAnnotations<S>>where
S::Annotations: IsUnset,
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>where
ObjKey: RefUnwindSafe,
N: RefUnwindSafe,
K: RefUnwindSafe,
L: RefUnwindSafe,
W: RefUnwindSafe,
A: RefUnwindSafe,
WV: RefUnwindSafe,
AV: RefUnwindSafe,
impl<ObjKey, N, K, L, W, WV, A, AV, S> Send for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
impl<ObjKey, N, K, L, W, WV, A, AV, S> Sync for MetadataStoreBuilder<ObjKey, N, K, L, W, WV, A, AV, S>
impl<ObjKey, N, K, L, W, WV, A, AV, S> Unpin 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>where
ObjKey: RefUnwindSafe + UnwindSafe,
N: RefUnwindSafe + UnwindSafe,
K: RefUnwindSafe + UnwindSafe,
L: RefUnwindSafe + UnwindSafe,
W: RefUnwindSafe + UnwindSafe,
A: RefUnwindSafe + UnwindSafe,
WV: RefUnwindSafe,
AV: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more