Skip to content

Make AxisDescription a non-tuple-struct #914

@jturner314

Description

@jturner314

I'm curious why AxisDescription is a tuple struct. Since the fields are pub anyway, I think it would be more convenient to change the definition to this

pub struct AxisDescription {
    pub axis: Axis,
    pub len: usize,
    pub stride: isize,
}

and remove the .axis(), .len(), and .stride() methods.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions