[][src]Struct hulc2envolventecte::parsers::bdl::AttrMap

pub struct AttrMap(pub HashMap<String, BdlValue>);

Implementations

impl AttrMap[src]

pub fn new() -> Self[src]

Constructor

pub fn insert<K: ToString>(&mut self, k: K, v: &str) -> Option<BdlValue>[src]

Inserta valor v en la clave k y devuelve el valor existente o None

pub fn get(&self, attr: &str) -> Result<BdlValue, Error>[src]

Devuelve valor como BdlValue

pub fn get_f32(&self, attr: &str) -> Result<f32, Error>[src]

Devuelve valor como número

pub fn get_str(&self, attr: &str) -> Result<String, Error>[src]

Devuelve valor como String

pub fn remove(&mut self, attr: &str) -> Result<BdlValue, Error>[src]

Elimina un valor del diccionario y devuelve como BdlValue

pub fn remove_f32(&mut self, attr: &str) -> Result<f32, Error>[src]

Elimina valor y devuelve como número

pub fn remove_str(&mut self, attr: &str) -> Result<String, Error>[src]

Elimina valor y devuelve como String

Trait Implementations

impl Clone for AttrMap[src]

impl Debug for AttrMap[src]

impl Default for AttrMap[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.