You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having more flexible ways to instantiate Decor could be a good thing. I think it's handy to partially instantiate Decor with either the prefix or the suffix.
Example
I want to do this:
let key = Key::new("hello").with_leaf_decor(Decor::new(None,"world"));// "hello" key with "world" decor suffix
Or even something similar to this:
let key = Key::new("hello").with_leaf_decor(Decor::new_suffix("world"));// "hello" key with "world" decor suffix
Description
Having more flexible ways to instantiate
Decor
could be a good thing. I think it's handy to partially instantiateDecor
with either the prefix or the suffix.Example
I want to do this:
Or even something similar to this:
But instead, I have to do this:
Or this (which is possibly wrong but may work sometimes):
The text was updated successfully, but these errors were encountered: