[−][src]Struct libipld_core::link::Link
Typed cid.
Implementations
impl<T> Link<T>[src]
pub fn new(cid: Cid) -> Self[src]
Creates a new Link.
pub fn cid(&self) -> &Cid[src]
Returns a reference to the cid.
Trait Implementations
impl<T> AsRef<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Link<T>[src]
impl<T> Clone for Link<T>[src]
pub fn clone(&self) -> Self[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<T> Copy for Link<T>[src]
impl<T: Debug> Debug for Link<T>[src]
impl<C: Codec, T> Decode<C> for Link<T> where
Cid: Decode<C>, [src]
Cid: Decode<C>,
impl<T> Deref for Link<T>[src]
impl<T> Display for Link<T>[src]
impl<C: Codec, T> Encode<C> for Link<T> where
Cid: Encode<C>, [src]
Cid: Encode<C>,
impl<T> Eq for Link<T>[src]
impl<T> From<Cid<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>>> for Link<T>[src]
impl<T> Hash for Link<T>[src]
pub fn hash<H: Hasher>(&self, hasher: &mut H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<T> Ord for Link<T>[src]
pub fn cmp(&self, other: &Self) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl<T> PartialEq<Link<T>> for Link<T>[src]
pub fn eq(&self, other: &Self) -> bool[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool1.0.0[src]
impl<T> PartialOrd<Link<T>> for Link<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for Link<T> where
T: RefUnwindSafe, [src]
T: RefUnwindSafe,
impl<T> Send for Link<T> where
T: Send, [src]
T: Send,
impl<T> Sync for Link<T> where
T: Sync, [src]
T: Sync,
impl<T> Unpin for Link<T> where
T: Unpin, [src]
T: Unpin,
impl<T> UnwindSafe for Link<T> where
T: UnwindSafe, [src]
T: UnwindSafe,
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> 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>(RawCodec, &mut R, &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]
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> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
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>,