[−][src]Struct hulc2envolventecte::parsers::bdl::AttrMap
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
Auto Trait Implementations
impl RefUnwindSafe for AttrMap
[src]
impl Send for AttrMap
[src]
impl Sync for AttrMap
[src]
impl Unpin for AttrMap
[src]
impl UnwindSafe for AttrMap
[src]
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,