Struct yash_syntax::alias::Alias
source · [−]pub struct Alias {
pub name: String,
pub replacement: String,
pub global: bool,
pub origin: Location,
}
Expand description
Name-value pair that defines an alias.
Fields
name: String
Name of the alias that is matched against a command word by the syntax parser.
replacement: String
String that substitutes part of the source code when it is found to match the alias name.
global: bool
Whether this alias is a global alias or not.
origin: Location
Location of the word in the simple command that invoked the alias built-in to define this alias.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Alias
impl !UnwindSafe for Alias
Blanket Implementations
Mutably borrows from an owned value. Read more