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)
Trait Implementations
Order by sequence number.
Equal if and only if the sequence numbers are equal.
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