[−][src]Struct gremlin_client::Map
Implementations
impl Map
[src]
pub fn iter(&self) -> impl Iterator<Item = (&GKey, &GValue)>
[src]
Iterate all key-value pairs
pub fn get<T>(&self, key: T) -> Option<&GValue> where
T: Into<GKey>,
[src]
T: Into<GKey>,
Returns a reference to the value corresponding to the key.
pub fn try_get<K, V>(&self, key: K) -> GremlinResult<V> where
K: Into<GKey>,
V: TryFrom<GValue, Error = GremlinError>,
[src]
K: Into<GKey>,
V: TryFrom<GValue, Error = GremlinError>,
Returns try_get and conversion
pub fn len(&self) -> usize
[src]
Returns the number of elements in the map.
pub fn is_empty(&self) -> bool
[src]
Returns true if the map contains no elements.
Trait Implementations
impl Clone for Map
[src]
impl Debug for Map
[src]
impl From<BTreeMap<String, GValue>> for Map
[src]
impl From<HashMap<GKey, GValue, RandomState>> for Map
[src]
impl From<HashMap<String, GValue, RandomState>> for Map
[src]
impl FromIterator<(String, GValue)> for Map
[src]
impl<T: Into<GKey>> Index<T> for Map
[src]
impl IntoIterator for Map
[src]
type Item = (GKey, GValue)
The type of the elements being iterated over.
type IntoIter = IntoIter<GKey, GValue>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
impl PartialEq<Map> for Map
[src]
impl StructuralPartialEq for Map
[src]
Auto Trait Implementations
impl RefUnwindSafe for Map
impl Send for Map
impl Sync for Map
impl Unpin for Map
impl UnwindSafe for Map
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,