pub struct Word {
pub key: &'static str,
pub source: &'static str,
pub catalogue: Option<&'static Catalogue>,
pub arguments: Vec<(&'static str, Argument)>,
}Expand description
A declared word: a key of its crate’s Catalogue and the text the
catalogue’s source language gives it.
Fields§
§key: &'static str§source: &'static strWhat the source language says: the text where no catalogue of the person’s holds the key.
catalogue: Option<&'static Catalogue>§arguments: Vec<(&'static str, Argument)>What the placeables of the message show (name = …), by the names
the message calls them: a word naming what a person looks at
(“Rename “report.pdf””) carries it here rather than in text no
catalogue can translate.
Implementations§
Source§impl Word
impl Word
Sourcepub fn read(&self) -> String
pub fn read(&self) -> String
The word in the person’s language, its placeables filled — and its
declared text, its placeables filled too, where no catalogue of theirs
holds the key, or where no process installed one (install): a server or
an agent applying an action reads the same words as a window without the
catalogue syntax.
Trait Implementations§
Auto Trait Implementations§
impl Forget for Word
impl Freeze for Word
impl Move for Word
impl RefUnwindSafe for Word
impl Send for Word
impl Sync for Word
impl Unpin for Word
impl UnsafeUnpin for Word
impl UnwindSafe for Word
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
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 moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
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