Struct commonplace::ZettelId[][src]

#[repr(transparent)]
pub struct ZettelId(pub u64);
Expand description

Each Zettel is associated with a unique ID, which is based on a timestamp of when the Zettel was created, turned into a single number, but retaining most of its human-readability. For example, a Zettel created when this comment was written would have the form (with dashes inserted for readability) 12021-07-04-23-32-24. This allows a Zettel to be created every second, which I think will be okay for real-world purposes.

The time in the timestamp is UTC+0, and the date uses the Holocene calendar.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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

This method tests for !=.

Serialize this value into the given Serde serializer. 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

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.