Skip to content

Impl Deref and DerefMut #11

@jamwaffles

Description

@jamwaffles

Makes life easier. Instead of:

output_1.set_value(time.into())?;
input_1.value()?;

We can do this:

*output_1 = time.into();
*input_1;

Docs must mention that a deref can panic, and that the programmer should use .value()/.set_value() for a non-panicking impl.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions