pub struct DictType<K: StarlarkTypeRepr, V: StarlarkTypeRepr> { /* private fields */ }
Expand description
A dict used just for display purposes.
DictOf
requires Unpack
to be implemented, and Dict
does not take type parameters so
we need something for documentation generation.
Trait Implementations§
source§impl<K: StarlarkTypeRepr, V: StarlarkTypeRepr> StarlarkTypeRepr for DictType<K, V>
impl<K: StarlarkTypeRepr, V: StarlarkTypeRepr> StarlarkTypeRepr for DictType<K, V>
source§fn starlark_type_repr() -> Ty
fn starlark_type_repr() -> Ty
The representation of a type that a user would use verbatim in starlark type annotations
Auto Trait Implementations§
impl<K, V> RefUnwindSafe for DictType<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for DictType<K, V>
impl<K, V> Sync for DictType<K, V>
impl<K, V> Unpin for DictType<K, V>
impl<K, V> UnwindSafe for DictType<K, V>where
K: UnwindSafe,
V: UnwindSafe,
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