Skip to content

trait Euclid takes args by reference instead of by value #349

@Firestar99

Description

@Firestar99

fn div_euclid(&self, v: &Self) -> Self;

Is there any particular reason the functions of trait Euclid takes their args by reference, instead of by value? In std f32::rem_euclid also takes them by value, not reference, making them incompatible.

Also, should trait Float depend on this trait to better match std?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions