[][src]Struct ipfs::path::SlashedPath

pub struct SlashedPath { /* fields omitted */ }

SlashedPath is internal to IpfsPath variants, and basically holds a unixfs-compatible path where segments do not contain slashes but can pretty much contain all other valid UTF-8.

UTF-8 originates likely from UnixFS related protobuf descriptions, where dag-pb links have UTF-8 names, which equal to SlashedPath segments.

Implementations

impl SlashedPath[src]

pub fn iter(&self) -> impl Iterator<Item = &String>[src]

Returns an iterator over the path segments

pub fn len(&self) -> usize[src]

Returns the number of segments

pub fn is_empty(&self) -> bool[src]

Returns true if len is zero

Trait Implementations

impl Clone for SlashedPath[src]

impl Debug for SlashedPath[src]

impl Default for SlashedPath[src]

impl Display for SlashedPath[src]

impl Eq for SlashedPath[src]

impl Hash for SlashedPath[src]

impl<'a> PartialEq<[&'a str]> for SlashedPath[src]

impl PartialEq<SlashedPath> for SlashedPath[src]

impl StructuralEq for SlashedPath[src]

impl StructuralPartialEq for SlashedPath[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]