Struct devlog::path::LogPath[][src]

pub struct LogPath { /* fields omitted */ }

Implementations

Devlog entry files are numbered sequentially, starting from one. Each filename is nine digits with the extension “.devlog”; for example, “000000123.devlog”. This ensures that the devlog files appear in sequential order when sorted alphabetically.

Create a new path with the specified sequence number, which must be at least one and at most MAX_SEQ_NUM.

Parse the sequence number from a filesystem path. Returns None if the filename isn’t formatted like “000000123.devlog”.

Returns the path for the next entry in the sequence. In the unlikely event that the maximum sequence number is reached, returns Error::LogFileLimitExceeded.

Returns the sequence number (e.g. “00000123.devlog” would have sequence number 123)

Returns the filesystem path.

Trait Implementations

Formats the value using the given formatter. Read more

Order by sequence number.

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

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Restrict a value to a certain interval. Read more

Equal if and only if the sequence numbers are equal.

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

This method tests for !=.

Order by sequence number.

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

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

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

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

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.