Struct rocfl::ocfl::InventoryPath[][src]

pub struct InventoryPath(_);

Represents a logical or content path.

Implementations

impl InventoryPath[src]

pub fn parts(&self) -> Split<'_, char>[src]

Returns an iterable containing each segment of the path split on the / separator

pub fn parent(&self) -> InventoryPath[src]

Returns the parent path of this path.

pub fn filename(&self) -> &str[src]

Returns the part of the logical path that’s after the final / or the entire path if there is no /

pub fn resolve(&self, other: &InventoryPath) -> InventoryPath[src]

Creates a new path by joining this path with another

Trait Implementations

impl AsRef<String> for InventoryPath[src]

impl Clone for InventoryPath[src]

impl Debug for InventoryPath[src]

impl<'de> Deserialize<'de> for InventoryPath[src]

impl Display for InventoryPath[src]

impl Eq for InventoryPath[src]

impl Hash for InventoryPath[src]

impl Ord for InventoryPath[src]

impl PartialEq<InventoryPath> for InventoryPath[src]

impl PartialOrd<InventoryPath> for InventoryPath[src]

impl Serialize for InventoryPath[src]

impl StructuralEq for InventoryPath[src]

impl StructuralPartialEq for InventoryPath[src]

impl TryFrom<&'_ String> for InventoryPath[src]

type Error = RocflError

The type returned in the event of a conversion error.

impl TryFrom<&'_ str> for InventoryPath[src]

type Error = RocflError

The type returned in the event of a conversion error.

impl TryFrom<Cow<'_, str>> for InventoryPath[src]

type Error = RocflError

The type returned in the event of a conversion error.

impl TryFrom<String> for InventoryPath[src]

type Error = RocflError

The type returned in the event of a conversion error.

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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>,