Skip to main content

Words

Struct Words 

Source
pub struct Words {
    pub lists: Vec<&'static str>,
    pub aliases: Vec<(&'static str, &'static str)>,
    pub keys: Vec<&'static str>,
    pub commands: Vec<&'static str>,
    pub path_lead: Vec<&'static str>,
    pub secret_names: Vec<&'static str>,
    pub secret_headers: Vec<&'static str>,
    pub media: Vec<&'static str>,
    pub hosts: Vec<(&'static str, &'static str)>,
    pub mcp_hosts: Vec<(&'static str, Vec<&'static str>, &'static str, &'static str)>,
    pub ssh: Vec<&'static str>,
    pub stop: Vec<&'static str>,
    /* private fields */
}
Expand description

The language’s words (src/data/words.json).

Fields§

§lists: Vec<&'static str>

The lists of a page: next to a page id, the first word stays the list and the words after it filter it (fats u1 links inmueble, fats u1 cards 3 hab).

§aliases: Vec<(&'static str, &'static str)>

Other spellings of a reserved word, and what people type for it (login → setup, balance → account): reserved only without free text, like the word itself; -V by its case.

§keys: Vec<&'static str>

Known mod keys (aliases resolve to these first), and those that take a boolean.

§commands: Vec<&'static str>

The commands a lone word may be a typo of. The reading words (more, full, json, links, help) are left out: their neighbours are real searches (mode, fuel, jason, yelp).

§path_lead: Vec<&'static str>

What leads a path, never a key (setup::masked): /etc/x, ./file, ~/x.

§secret_names: Vec<&'static str>

Key and credential file names (.env.* = a prefix), matched on the bare name: cli::secret.

§secret_headers: Vec<&'static str>

Headers that carry a credential, the site’s or ours: never kept with a page (provider::header_lines).

§media: Vec<&'static str>

A filter for only these words that finds nothing points to the page’s media list (search::grep).

§hosts: Vec<(&'static str, &'static str)>

Agent hosts by the env marker each sets for the commands it runs (stats::host_of): CLAUDECODE (Claude Code’s shell), CODEX_THREAD_ID (Codex’s exec env), PI_CODING_AGENT (pi); the first set one wins.

§mcp_hosts: Vec<(&'static str, Vec<&'static str>, &'static str, &'static str)>

The hosts fats status names and fats setup mcp <host> adds fats to: the files its mcp add writes (mcp::read), that command ({b} = the server’s command; none = fats writes the first file), the name a person knows: Claude Code’s user and local scopes in ~/.claude.json ($CLAUDE_CONFIG_DIR/.claude.json while that is set, code.claude.com/docs/en/claude-directory), its project scope in ./.mcp.json (code.claude.com/docs/en/mcp), Codex’s $CODEX_HOME/config.toml (developers.openai.com/codex/mcp), Cursor’s global and project files (cursor.com/docs/context/mcp).

§ssh: Vec<&'static str>

What an SSH login sets (OpenSSH, ssh(1) ENVIRONMENT): fats setup <p> adds the key’s SSH way only then.

§stop: Vec<&'static str>

Words a filter never looks for (search::terms_of, the title query).

Trait Implementations§

Source§

impl<'de> Deserialize<'de> for Words
where 'de: 'static,

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations§

§

impl Forget for Words

§

impl Freeze for Words

§

impl RefUnwindSafe for Words

§

impl Send for Words

§

impl Sync for Words

§

impl Unpin for Words

§

impl UnsafeUnpin for Words

§

impl UnwindSafe for Words

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<U, T> ToOwnedObj<U> for T
where U: FromObjRef<T>,

Source§

fn to_owned_obj(&self, data: FontData<'_>) -> U

Convert this type into T, using the provided data to resolve any offsets.
Source§

impl<U, T> ToOwnedTable<U> for T
where U: FromTableRef<T>,

Source§

fn to_owned_table(&self) -> U

Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more