Struct yash_syntax::syntax::Assign
source · [−]Expand description
Assignment word.
Fields
name: String
Name of the variable to assign to.
In the valid assignment syntax, the name must not be empty.
value: Value
Value assigned to the variable.
location: Location
Location of the first character of the assignment word.
Trait Implementations
Fallible conversion from a word into an assignment.
Converts a word into an assignment.
For a successful conversion, the word must be of the form name=value
,
where name
is a non-empty literal word,
=
is an unquoted equal sign, and value
is a word. If the input word
does not match this syntax, it is returned intact in Err
.
Auto Trait Implementations
impl !RefUnwindSafe for Assign
impl !UnwindSafe for Assign
Blanket Implementations
Mutably borrows from an owned value. Read more