pub struct Hash {
pub map: LinkedHashMap<Yaml, Yaml>,
pub block: bool,
}
Fields§
§map: LinkedHashMap<Yaml, Yaml>
§block: bool
Implementations§
Source§impl Hash
impl Hash
pub fn new(block: bool) -> Self
pub fn into_iter(self) -> IntoIter<Yaml, Yaml>
pub fn insert(&mut self, k: Yaml, v: Yaml) -> Option<Yaml>
pub fn get(&self, k: &Yaml) -> Option<&Yaml>
pub fn get_mut(&mut self, k: &Yaml) -> Option<&mut Yaml>
pub fn remove(&mut self, k: &Yaml) -> Option<Yaml>
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> Iter<'_, Yaml, Yaml>
pub fn iter_mut(&mut self) -> IterMut<'_, Yaml, Yaml>
Trait Implementations§
Source§impl Ord for Hash
impl Ord for Hash
Source§impl PartialOrd for Hash
impl PartialOrd for Hash
impl Eq for Hash
impl StructuralPartialEq for Hash
Auto Trait Implementations§
impl Freeze for Hash
impl RefUnwindSafe for Hash
impl Send for Hash
impl Sync for Hash
impl Unpin for Hash
impl UnwindSafe for Hash
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