We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
My Idea is to use something similar to thiserror where you specify a format string that get's filled with the fields:
thiserror
#[derive(Error, Debug)] pub enum DocumentError { #[error("Invalid {0}: `{1}`")] InvalidAttribute(String, String), }
This could look like this for Debug of structs:
#[derive(Derivative)] #[derivative(Debug(format="({x},{y}: {w})"))] pub struct Point { pub x: f32, pub y: f32, pub w: f32, }
I think most of the Time this is enough for formatting, and you don't actually need a function for that.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
My Idea is to use something similar to
thiserror
where you specify a format string that get's filled with the fields:This could look like this for Debug of structs:
I think most of the Time this is enough for formatting, and you don't actually need a function for that.
The text was updated successfully, but these errors were encountered: