Dictionary

Type Alias Dictionary 

Source
pub type Dictionary = KVec<KeyValuePair>;
Expand description

A vector of Neovim KeyValuePair s.

Aliased Type§

#[repr(C)]
pub struct Dictionary { /* private fields */ }

Implementations§

Source§

impl Dictionary

Source

pub fn get<Q>(&self, query: &Q) -> Option<&Object>
where String: PartialEq<Q>,

Source

pub fn get_mut<Q>(&mut self, query: &Q) -> Option<&mut Object>
where String: PartialEq<Q>,

Trait Implementations§

Source§

impl Debug for Dictionary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Dictionary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<K, V> From<HashMap<K, V>> for Dictionary
where String: From<K>, Object: From<V>,

Source§

fn from(hashmap: HashMap<K, V>) -> Self

Converts to this type from the input type.
Source§

impl<K, V> FromIterator<(K, V)> for Dictionary
where K: Into<String>, V: Into<Object>,

Source§

fn from_iter<I: IntoIterator<Item = (K, V)>>(iter: I) -> Self

Creates a value from an iterator. Read more
Source§

impl FromObject for Dictionary

Source§

impl<S: Into<String>> Index<S> for Dictionary

Source§

type Output = Object

The returned type after indexing.
Source§

fn index(&self, index: S) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl<S: Into<String>> IndexMut<S> for Dictionary

Source§

fn index_mut(&mut self, index: S) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl IntoIterator for Dictionary

Source§

type IntoIter = DictIterator

Which kind of iterator are we turning this into?
Source§

type Item = <DictIterator as Iterator>::Item

The type of the elements being iterated over.
Source§

fn into_iter(self) -> Self::IntoIter

Creates an iterator from a value. Read more
Source§

impl Poppable for Dictionary

Source§

unsafe fn pop(lstate: *mut lua_State) -> Result<Self, Error>

Pops the value at the top of the stack.
Source§

impl Pushable for Dictionary

Source§

unsafe fn push(self, lstate: *mut lua_State) -> Result<c_int, Error>

Pushes all its values on the Lua stack, returning the number of values that it pushed.