Enum libipld_core::ipld::Ipld [−][src]
pub enum Ipld {
Null,
Bool(bool),
Integer(i128),
Float(f64),
String(String),
Bytes(Vec<u8>),
List(Vec<Ipld>),
StringMap(BTreeMap<String, Ipld>),
Link(Cid),
}Expand description
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 of strings.
Link(Cid)Represents a link to an Ipld node.
Implementations
impl Ipld[src]
impl Ipld[src]pub fn take<'a, T: Into<IpldIndex<'a>>>(
self,
index: T
) -> Result<Self, TypeError>[src]
pub fn take<'a, T: Into<IpldIndex<'a>>>(
self,
index: T
) -> Result<Self, TypeError>[src]Destructs an ipld list or map
pub fn get<'a, T: Into<IpldIndex<'a>>>(
&self,
index: T
) -> Result<&Self, TypeError>[src]
pub fn get<'a, T: Into<IpldIndex<'a>>>(
&self,
index: T
) -> Result<&Self, TypeError>[src]Indexes into an ipld list or map.
pub fn references<E: Extend<Cid>>(&self, set: &mut E)[src]
pub fn references<E: Extend<Cid>>(&self, set: &mut E)[src]Returns the references to other blocks.
Trait Implementations
impl From<&'_ Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld[src]
impl From<&'_ Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld[src]impl From<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld[src]
impl From<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Ipld[src]impl StructuralPartialEq for Ipld[src]
Auto Trait Implementations
impl RefUnwindSafe for Ipld
impl Send for Ipld
impl Sync for Ipld
impl Unpin for Ipld
impl UnwindSafe for Ipld
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> References<RawCodec> for T[src]
impl<T> References<RawCodec> for T[src]impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more