Enum yash_syntax::syntax::WordUnit
source · [−]Expand description
Element of a Word, i.e., text with quotes and tilde expansion.
Variants
Unquoted(TextUnit)
Unquoted TextUnit
as a word unit.
SingleQuote(String)
String surrounded with a pair of single quotations.
DoubleQuote(Text)
Text surrounded with a pair of double quotations.
Tilde(String)
Tilde expansion.
The String
value does not contain the initial tilde.
Trait Implementations
If self
is Unquoted(Literal(_))
, appends the character to result
and returns Ok(result)
. Otherwise, returns Err(result)
.
Checks if self
is literal and, if so, converts to a string.
Auto Trait Implementations
impl !RefUnwindSafe for WordUnit
impl !UnwindSafe for WordUnit
Blanket Implementations
Mutably borrows from an owned value. Read more