Skip to main content

About

Enum About 

Source
pub enum About {
    Off,
    Structure,
}
Expand description

Whether the workspace generates about.md — a short prose page, specialized against this workspace’s own configuration, that tells a reader with no prior knowledge how to read this directory.

The gap it closes is narrow and specific. A prov workspace already explains its structure — the links are in the documents, visibly — but not its conventions: what the links mean, how they are spelled, which files are in the tree and which are not. Those live in the config, which is machine-facing and assumes the reader already knows what its keys mean. So a person who opens the directory with no prior knowledge cannot today learn to read it from the directory; they must obtain docs/spec.md, which is a dependency on an institution surviving — exactly the dependency the project refuses everywhere else.

The page is not a vendored copy of the spec. It is the spec specialized against this configuration: every rule resolved to a concrete fact, every branch this workspace does not take deleted. Where the spec says “the block is fenced by ---, ;;;, or ```fig,” the generated page says “every file here opens with a --- line.” Nothing is lost operationally, and the sentence is about this directory rather than about prov.

Default on, unlike History: it costs a few hundred bytes and one file, and a workspace that explains itself to a stranger by default is the whole thesis — making it opt-in concedes it.

Variants§

§

Off

No page is generated and the root declares no about pointer (off).

§

Structure

Generate the page describing the workspace’s structure (structure, the default): the root and the spine; how a file is fenced; how a reference is written and what else is read; the relation vocabulary; what is machinery and not in the tree; the id, checksum and deletion conventions.

Implementations§

Source§

impl About

Source

pub fn generates(self) -> bool

Whether a page is generated at all.

Source

pub fn from_config_str(value: &str) -> Option<Self>

Parse the about config spelling; unknown → None.

Source

pub fn as_config_str(self) -> &'static str

The about config spelling.

Trait Implementations§

Source§

impl Clone for About

Source§

fn clone(&self) -> About

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for About

Source§

impl Debug for About

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for About

Source§

fn default() -> About

Returns the “default value” for a type. Read more
Source§

impl Eq for About

Source§

impl PartialEq for About

Source§

fn eq(&self, other: &About) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for About

Auto Trait Implementations§

§

impl Freeze for About

§

impl RefUnwindSafe for About

§

impl Send for About

§

impl Sync for About

§

impl Unpin for About

§

impl UnsafeUnpin for About

§

impl UnwindSafe for About

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

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

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.