Lyricdev
GitHub

interface Default

pub interface Default

Gives the value a type starts from: 0, "", [], null, a field default.

Synthesized field-wise.

Methods

static fn default(): Self

Returns the type's default value.

Synthesized field-wise by the compiler; the interface itself gives no body.