[−][src]Struct no_proto::json_flex::JSMAP
The JSON representation of a JS Map
Fields
values: Vec<(String, NP_JSON)>
The vec of values in the map
Implementations
impl JSMAP
[src]
pub fn new() -> Self
[src]
Generate a new empty map
pub fn insert(&mut self, key: String, value: NP_JSON) -> usize
[src]
Insert a value into the map
pub fn get_mut(&mut self, key: &str) -> Option<&mut NP_JSON>
[src]
Get a mutable reference to a value in the map
pub fn get(&self, key: &str) -> Option<&NP_JSON>
[src]
Get an immutable reference to a value in the map
pub fn has(&self, key: &str) -> bool
[src]
Check if a value exists in the map
Trait Implementations
Auto Trait Implementations
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,
pub 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<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.
pub 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>,