Struct rant::RantMap [−][src]
pub struct RantMap { /* fields omitted */ }
Represents Rant’s map
type, which stores a collection of key-value pairs.
Map keys are always strings.
Implementations
impl RantMap
[src]
impl RantMap
[src]pub fn new() -> Self
[src]
pub fn clear(&mut self)
[src]
pub fn raw_len(&self) -> usize
[src]
pub fn is_empty(&self) -> bool
[src]
pub fn proto(&self) -> Option<RantMapRef>
[src]
pub fn extend<M: Deref<Target = RantMap>>(&mut self, other: M)
[src]
pub fn set_proto(&mut self, proto: Option<RantMapRef>)
[src]
pub fn raw_set(&mut self, key: &str, val: RantValue)
[src]
pub fn raw_remove(&mut self, key: &str)
[src]
pub fn raw_take(&mut self, key: &str) -> Option<RantValue>
[src]
pub fn raw_get(&self, key: &str) -> Option<&RantValue>
[src]
pub fn get(&self, key: &str) -> Option<Cow<'_, RantValue>>
[src]
pub fn raw_has_key(&self, key: &str) -> bool
[src]
pub fn raw_keys(&self) -> RantList
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RantMap
impl !RefUnwindSafe for RantMap
impl !UnwindSafe for RantMap
impl !UnwindSafe for RantMap