Struct conserve::BandId [] [src]

pub struct BandId { /* fields omitted */ }

Identifier for a band within an archive, eg 'b0001' or 'b0001-0020'.

BandIds implement a total ordering std::cmp::Ord.

Methods

impl BandId
[src]

[src]

Makes a new BandId from a sequence of integers.

[src]

Return the origin BandId.

[src]

Return the next BandId at the same level as self.

[src]

Make a new BandId from a string form.

[src]

Returns the string representation of this BandId.

Bands have an id which is a sequence of one or more non-negative integers. This is externally represented as a string like b0001-0010, which becomes their directory name in the archive.

Numbers are zero-padded to what should normally be a reasonable length, but they can be longer.

Trait Implementations

impl Debug for BandId
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for BandId
[src]

[src]

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

[src]

This method tests for !=.

impl Clone for BandId
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for BandId
[src]

impl PartialOrd for BandId
[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 BandId
[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 Display for BandId
[src]

[src]

Formats the value using the given formatter. Read more