Attribute.opAssign

Assign a new value to this attribute. Retains the original key.

  1. Attribute opAssign(string newValue)
  2. Attribute opAssign(string[] newValue)
  3. Attribute opAssign(InterpolationHeader , Ts values, InterpolationFooter )
    struct Attribute
    pure
    static if(withInterpolation)
    opAssign
    (
    Ts...
    )
    (
    InterpolationHeader
    ,,
    InterpolationFooter
    )

Return Value

Type: Attribute

The attribute.

Examples

auto a = Attribute("name");
a = i"1+2 is $(1+2)";
assert(a == `name="1+2 is 3"`);

Meta