[−][src]Enum libipld::Ipld
Ipld
Variants
Represents the absence of a value or the value undefined.
Bool(bool)
Represents a boolean value.
Integer(i128)
Represents an integer.
Float(f64)
Represents a floating point value.
String(String)
Represents an UTF-8 string.
Represents a sequence of bytes.
Represents a list.
Represents a map.
Represents a link to an Ipld node.
Implementations
impl Ipld
[src]
pub fn take<'a, T>(self, index: T) -> Result<Ipld, TypeError> where
T: Into<IpldIndex<'a>>,
[src]
T: Into<IpldIndex<'a>>,
Destructs an ipld list or map
pub fn get<'a, T>(&self, index: T) -> Result<&Ipld, TypeError> where
T: Into<IpldIndex<'a>>,
[src]
T: Into<IpldIndex<'a>>,
Indexes into an ipld list or map.
pub fn iter(&self) -> IpldIter<'_>ⓘ
[src]
Returns an iterator.
pub fn references<E>(&self, set: &mut E) where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
[src]
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
Returns the references to other blocks.
Trait Implementations
impl Clone for Ipld
[src]
impl Debug for Ipld
[src]
impl Decode<DagCborCodec> for Ipld
[src]
impl Decode<DagJsonCodec> for Ipld
[src]
impl Decode<DagPbCodec> for Ipld
[src]
impl Decode<IpldCodec> for Ipld
[src]
impl Decode<RawCodec> for Ipld
[src]
impl Encode<DagCborCodec> for Ipld
[src]
impl Encode<DagJsonCodec> for Ipld
[src]
impl Encode<DagPbCodec> for Ipld
[src]
impl Encode<IpldCodec> for Ipld
[src]
impl Encode<RawCodec> for Ipld
[src]
impl<'_> From<&'_ [u8]> for Ipld
[src]
impl<'_> From<&'_ Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld
[src]
pub fn from(
t: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> Ipld
[src]
t: &Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> Ipld
impl<'_> From<&'_ Ipld> for TypeErrorType
[src]
pub fn from(ipld: &Ipld) -> TypeErrorType
[src]
impl<'_> From<&'_ str> for Ipld
[src]
impl From<BTreeMap<String, Ipld>> for Ipld
[src]
impl From<Box<[u8], Global>> for Ipld
[src]
impl From<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld
[src]
pub fn from(
t: Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> Ipld
[src]
t: Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>
) -> Ipld
impl From<Ipld> for TypeErrorType
[src]
pub fn from(ipld: Ipld) -> TypeErrorType
[src]
impl From<String> for Ipld
[src]
impl From<Vec<Ipld, Global>> for Ipld
[src]
impl From<Vec<u8, Global>> for Ipld
[src]
impl From<bool> for Ipld
[src]
impl From<f32> for Ipld
[src]
impl From<f64> for Ipld
[src]
impl From<i128> for Ipld
[src]
impl From<i16> for Ipld
[src]
impl From<i32> for Ipld
[src]
impl From<i64> for Ipld
[src]
impl From<i8> for Ipld
[src]
impl From<isize> for Ipld
[src]
impl From<u16> for Ipld
[src]
impl From<u32> for Ipld
[src]
impl From<u64> for Ipld
[src]
impl From<u8> for Ipld
[src]
impl From<usize> for Ipld
[src]
impl PartialEq<Ipld> for Ipld
[src]
impl References<DagCborCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagCborCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read + Seek,
[src]
c: DagCborCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read + Seek,
impl References<DagJsonCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagJsonCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
[src]
c: DagJsonCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
impl References<DagPbCodec> for Ipld
[src]
pub fn references<R, E>(
c: DagPbCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
[src]
c: DagPbCodec,
r: &mut R,
set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
impl References<IpldCodec> for Ipld
[src]
pub fn references<R: Read + Seek, E: Extend<Cid>>(
c: IpldCodec,
r: &mut R,
set: &mut E
) -> Result<()>
[src]
c: IpldCodec,
r: &mut R,
set: &mut E
) -> Result<()>
impl StructuralPartialEq for Ipld
[src]
impl TryReadCbor for Ipld
[src]
Auto Trait Implementations
impl RefUnwindSafe for Ipld
[src]
impl Send for Ipld
[src]
impl Sync for Ipld
[src]
impl Unpin for Ipld
[src]
impl UnwindSafe for Ipld
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DagCbor for T where
T: TryReadCbor + Encode<DagCborCodec> + Decode<DagCborCodec>,
[src]
T: TryReadCbor + Encode<DagCborCodec> + Decode<DagCborCodec>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> References<RawCodec> for T
[src]
pub fn references<R, E>(
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
[src]
_c: RawCodec,
_r: &mut R,
_set: &mut E
) -> Result<(), Error> where
E: Extend<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>>,
R: Read,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,