pub enum IpldIndex<'a> {
List(usize),
Map(String),
MapRef(&'a str),
}
Expand description
An index into ipld
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§
source§impl From<IpldIndex<'_>> for TypeErrorType
impl From<IpldIndex<'_>> for TypeErrorType
source§fn from(index: IpldIndex<'_>) -> TypeErrorType
fn from(index: IpldIndex<'_>) -> TypeErrorType
Converts to this type from the input type.
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