Struct libimagstore::storeid::StoreId [] [src]

pub struct StoreId { /* fields omitted */ }

The Index into the Store

Methods

impl StoreId
[src]

[src]

[src]

Try to create a StoreId object from a filesystem-absolute path.

Automatically creates a StoreId object which has a base set to store_part if stripping the store_part from the full_path succeeded.

Returns a StoreErrorKind::StoreIdBuildFromFullPathError if stripping failes.

[src]

[src]

[src]

[src]

Transform the StoreId object into a PathBuf, error if the base of the StoreId is not specified.

[src]

[src]

[src]

Returns the components of the id part of the StoreId object.

Can be used to check whether a StoreId points to an entry in a specific collection of StoreIds.

[src]

Get the local part of a StoreId object, as in "the part from the store root to the entry".

[src]

Check whether a StoreId points to an entry in a specific collection.

A "collection" here is simply a directory. So foo/bar/baz is an entry which is in collection ["foo", "bar", "baz"], but also in ["foo", "bar"] and ["foo"].

Warning

The collection specification has to start with the module name. Otherwise this function may return false negatives.

[src]

Trait Implementations

impl Debug for StoreId
[src]

[src]

Formats the value using the given formatter.

impl Clone for StoreId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for StoreId
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Eq for StoreId
[src]

impl PartialOrd for StoreId
[src]

[src]

This method returns an ordering between self and other values if one exists. Read more

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for StoreId
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialEq for StoreId
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl Display for StoreId
[src]

[src]

Formats the value using the given formatter. Read more

impl IntoStoreId for StoreId
[src]