pub struct Description {Show 13 fields
pub name: String,
pub kind: Kind,
pub parameters: String,
pub meaning: String,
pub primitive: Option<&'static str>,
pub defined: Option<Place>,
pub earlier: Vec<Option<Place>>,
pub redefinitions: usize,
pub from_format: bool,
pub aliases: Vec<String>,
pub native: Option<&'static str>,
pub similar: Vec<String>,
pub inner: Option<Inner>,
}Expand description
A description of a control sequence.
Fields§
§name: StringThe name, without the escape character.
kind: KindWhat it is.
parameters: StringFor macros: the parameter text, as \show prints it.
meaning: StringThe meaning, as \meaning gives it (for macros, the body after
->).
primitive: Option<&'static str>For primitives: the primitive’s own name.
defined: Option<Place>Where the current meaning was defined, if known.
earlier: Vec<Option<Place>>Where earlier meanings were defined during the run, each place
once, in order (None: unknown).
redefinitions: usizeThe number of earlier definitions.
from_format: boolWhether the meaning comes from the format (none of the run’s definitions made it).
aliases: Vec<String>Other names with the same meaning.
native: Option<&'static str>The name of retex’s native implementation, if it has one.
similar: Vec<String>For undefined names: defined names close to it.
inner: Option<Inner>The command a robust command or a document command stands for.
Trait Implementations§
Source§impl Clone for Description
impl Clone for Description
Auto Trait Implementations§
impl Freeze for Description
impl RefUnwindSafe for Description
impl Send for Description
impl Sync for Description
impl Unpin for Description
impl UnsafeUnpin for Description
impl UnwindSafe for Description
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