pub struct Dictionary<T> { /* private fields */ }
Implementations§
Source§impl<T: PartialEq> Dictionary<T>
impl<T: PartialEq> Dictionary<T>
pub fn new(x: bool) -> Self
pub fn push(&mut self, key: String, value: T) -> Result<(), String>
pub fn pop(&mut self)
pub fn search(&mut self, key: String) -> bool
pub fn len(&self) -> usize
pub fn index_of(&self, key: String) -> Result<Vec<usize>, String>
pub fn drop(&mut self, key: String) -> bool
pub fn contains(&self, value: &T) -> bool
pub fn overwrite(&mut self, key: String, newvalue: T) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Dictionary<T>
impl<T> RefUnwindSafe for Dictionary<T>where
T: RefUnwindSafe,
impl<T> Send for Dictionary<T>where
T: Send,
impl<T> Sync for Dictionary<T>where
T: Sync,
impl<T> Unpin for Dictionary<T>where
T: Unpin,
impl<T> UnwindSafe for Dictionary<T>where
T: UnwindSafe,
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