pub enum IpldIndex<'a> {
List(usize),
Map(String),
MapRef(&'a str),
}Expand description
An index into IPLD.
It’s used for accessing IPLD List and Map elements.
Variants§
List(usize)
An index into an ipld list.
Map(String)
An owned index into an ipld map.
MapRef(&'a str)
An index into an ipld map.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for IpldIndex<'a>
impl<'a> RefUnwindSafe for IpldIndex<'a>
impl<'a> Send for IpldIndex<'a>
impl<'a> Sync for IpldIndex<'a>
impl<'a> Unpin for IpldIndex<'a>
impl<'a> UnwindSafe for IpldIndex<'a>
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