[−][src]Struct viperus::Map
Methods
impl Map
[src]
pub fn new() -> Self
[src]
pub fn drain<'a>(&'a mut self) -> Drain<'a, String, ViperusValue>
[src]
pub fn add<T>(&mut self, key: &str, value: T) -> Option<T> where
ViperusValue: From<T>,
ViperusValue: Into<T>,
[src]
ViperusValue: From<T>,
ViperusValue: Into<T>,
pub fn add_value(
&mut self,
key: &str,
value: ViperusValue
) -> Option<ViperusValue>
[src]
&mut self,
key: &str,
value: ViperusValue
) -> Option<ViperusValue>
pub fn get_value(&self, key: &str) -> Option<&ViperusValue>
[src]
pub fn get<'a, 'b, 'c, T>(&'a self, key: &'a str) -> Option<T> where
ViperusValue: From<T>,
&'c ViperusValue: Into<T>,
ViperusValue: Into<T>,
[src]
ViperusValue: From<T>,
&'c ViperusValue: Into<T>,
ViperusValue: Into<T>,
pub fn merge(&mut self, src: &Map)
[src]
Trait Implementations
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<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>,