Trait rocfl::ocfl::InventoryPath [−][src]
pub trait InventoryPath {
fn parts(&self) -> Split<'_, char>;
fn parent(&self) -> Self;
fn filename(&self) -> &str;
fn resolve(&self, other: &Self) -> Self;
fn ends_with(&self, suffix: &str) -> bool;
fn starts_with(&self, prefix: &str) -> bool;
fn as_path(&self) -> &Path;
fn as_str(&self) -> &str;
fn is_empty(&self) -> bool;
}
Required methods
Returns an iterable containing each segment of the path split on the /
separator
Returns the part of the logical path that’s after the final /
or the entire path if
there is no /
fn starts_with(&self, prefix: &str) -> bool
fn starts_with(&self, prefix: &str) -> bool
Returns true if the path starts with the given prefix