Skip to content

Dimensions struct bundling width and height #4

@jofas

Description

@jofas

width and height variables throughout the codebase should be replaced with a serializable dimensions struct (best put in the src/util/frame.rs file):

struct Dimensions {
  width: usize,
  height: usize,
}

This should include the Frame struct:

mgart/src/util/frame.rs

Lines 17 to 22 in 0c7ddbb

#[derive(Debug, Clone)]
pub struct Frame<T> {
width: usize,
height: usize,
buf: Vec<T>,
}

And the jsonnet API

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumExperience: MediumE-mentorExperience: Has instructions on how to get started with a fixgood first issueGood for newcomers

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions