Struct nidrs_extern::meta::Meta
source · pub struct Meta { /* private fields */ }
Implementations§
source§impl Meta
impl Meta
pub fn new() -> Self
pub fn inner(&self) -> &HashMap<String, Box<dyn Any + Send + Sync>>
pub fn with_capacity(capacity: usize) -> Self
pub fn capacity(&self) -> usize
pub fn set<V: Any + Send + Sync>( &mut self, key: impl Into<String>, value: V, ) -> &mut Self
pub fn get<V: Any + Send + Sync>(&self, key: impl Into<String>) -> Option<&V>
pub fn get_mut<V: Any + Send + Sync>( &mut self, key: impl Into<String>, ) -> Option<&mut V>
pub fn set_data<V: Any + Send + Sync>(&mut self, value: V) -> &mut Self
pub fn get_data<V: Any + Send + Sync>(&self) -> Option<&V>
pub fn get_mut_data<V: Any + Send + Sync>(&mut self) -> Option<&mut V>
pub fn take<V: Any + Send + Sync>( &mut self, key: impl Into<String>, ) -> Option<V>
pub fn take_data<V: Any + Send + Sync>(&mut self) -> Option<V>
pub fn contains(&self, key: impl Into<String>) -> bool
pub fn contains_value<V: Any + Send + Sync>(&self) -> bool
pub fn remove( &mut self, key: impl Into<String>, ) -> Option<Box<dyn Any + Send + Sync>>
pub fn remove_value<V: Any + Send + Sync>( &mut self, ) -> Option<Box<dyn Any + Send + Sync>>
pub fn merge(&mut self, meta: Meta) -> &mut Self
pub fn extend(&mut self, meta: Arc<Meta>) -> &mut Self
pub fn iter(&self) -> Iter<'_, String, Box<dyn Any + Send + Sync>>
pub fn item_mut(&mut self) -> IterMut<'_, String, Box<dyn Any + Send + Sync>>
pub fn keys(&self) -> Vec<String>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Meta
impl !RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl !UnwindSafe for Meta
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more