pub struct StaticMap<K: 'static, V: 'static> { /* private fields */ }Implementations
Trait Implementations
sourceimpl<K: 'static, V: 'static> IntoIterator for StaticMap<K, V>
impl<K: 'static, V: 'static> IntoIterator for StaticMap<K, V>
sourceimpl<K: Ord + 'static, V: Ord + 'static> Ord for StaticMap<K, V>
impl<K: Ord + 'static, V: Ord + 'static> Ord for StaticMap<K, V>
1.21.0 · sourcefn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<K: 'static + Send + Sync + Eq + Hash + Display, V: 'static + Send + Sync + Serialize> OutputType for StaticMap<K, V>
Available on crate features async-graphql and alloc only.
impl<K: 'static + Send + Sync + Eq + Hash + Display, V: 'static + Send + Sync + Serialize> OutputType for StaticMap<K, V>
Available on crate features
async-graphql and alloc only.sourcefn create_type_info(registry: &mut Registry) -> String
fn create_type_info(registry: &mut Registry) -> String
Create type information in the registry and return qualified typename.
sourcefn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
fn resolve<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
_ctx: &'life1 ContextSelectionSet<'life2>,
_field: &'life3 Positioned<Field>
) -> Pin<Box<dyn Future<Output = ServerResult<Value>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Self: 'async_trait,
Resolve an output value to
async_graphql::Value.sourcefn qualified_type_name() -> String
fn qualified_type_name() -> String
Qualified typename.
sourcefn introspection_type_name(&self) -> Cow<'static, str>
fn introspection_type_name(&self) -> Cow<'static, str>
Introspection type name Read more
sourceimpl<K: PartialEq + 'static, V: PartialEq + 'static> PartialEq<StaticMap<K, V>> for StaticMap<K, V>
impl<K: PartialEq + 'static, V: PartialEq + 'static> PartialEq<StaticMap<K, V>> for StaticMap<K, V>
sourceimpl<K: PartialOrd + 'static, V: PartialOrd + 'static> PartialOrd<StaticMap<K, V>> for StaticMap<K, V>
impl<K: PartialOrd + 'static, V: PartialOrd + 'static> PartialOrd<StaticMap<K, V>> for StaticMap<K, V>
sourcefn partial_cmp(&self, other: &StaticMap<K, V>) -> Option<Ordering>
fn partial_cmp(&self, other: &StaticMap<K, V>) -> Option<Ordering>
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresourceimpl<K: Serialize, V: Serialize> Serialize for StaticMap<K, V>
Available on crate feature serde only.
impl<K: Serialize, V: Serialize> Serialize for StaticMap<K, V>
Available on crate feature
serde only.impl<K: 'static, V: 'static> Copy for StaticMap<K, V>
impl<K: Eq + 'static, V: Eq + 'static> Eq for StaticMap<K, V>
impl<K: 'static, V: 'static> StructuralEq for StaticMap<K, V>
impl<K: 'static, V: 'static> StructuralPartialEq for StaticMap<K, V>
Auto Trait Implementations
impl<K, V> RefUnwindSafe for StaticMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<K, V> Send for StaticMap<K, V>where
K: Sync,
V: Sync,
impl<K, V> Sync for StaticMap<K, V>where
K: Sync,
V: Sync,
impl<K, V> Unpin for StaticMap<K, V>
impl<K, V> UnwindSafe for StaticMap<K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.