Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LCDColorFmt should be const_trait #403

Open
github-actions bot opened this issue Jul 13, 2024 · 0 comments
Open

LCDColorFmt should be const_trait #403

github-actions bot opened this issue Jul 13, 2024 · 0 comments
Assignees
Labels

Comments

@github-actions
Copy link
Contributor

LCDColorFmt should be const_trait

// TODO: LCDColorFmt should be const_trait

Source of this issue
}


// TODO: LCDColorFmt should be const_trait
pub trait LCDColorFmt<'t> {
	type Display: 't + core::fmt::Debug + core::fmt::Display;
	fn display(&'t self) -> Self::Display;
}

impl<'t> LCDColorFmt<'t> for LCDSolidColor {
	type Display = LCDColorDisplay<'t, Self>;
	fn display(&self) -> LCDColorDisplay<'_, Self> { LCDColorDisplay(self) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant